[{"data":1,"prerenderedAt":952},["ShallowReactive",2],{"article-20210724-mysql-federated":3},{"article":4,"surround":941},{"id":5,"title":6,"authorKey":7,"body":8,"codeLinks":888,"createdAt":889,"description":890,"excerpt":891,"extension":930,"image":931,"meta":932,"navigation":576,"path":933,"published":934,"readingTime":305,"revisedAt":888,"seo":935,"stem":936,"tags":937,"__hash__":940},"articles\u002Farticles\u002F20210724-mysql-federated.md","MySQL FEDERATED Storage Engine and Replication","philip",{"type":9,"value":10,"toc":876},"minimark",[11,41,47,71,80,87,99,112,117,130,211,215,220,238,256,259,309,326,330,356,414,417,489,496,521,665,683,692,720,729,733,737,743,751,765,813,816,830,839,845,869,872],[12,13,14,15,22,23,28,29,33,34,33,37,40],"p",{},"Back in Nov 2020, it got time to rethink the MySQL replication infrastructure for ",[16,17,21],"a",{"href":18,"rel":19},"https:\u002F\u002Fmy.onlime.ch\u002F",[20],"nofollow","Airpane Controlpanel",", our customer dashboard at ",[16,24,27],{"href":25,"rel":26},"https:\u002F\u002Fwww.onlime.ch\u002F",[20],"Onlime GmbH",". The whole application runs on a separate server, but an extract of mail account information (mail account credentials, mail mappings\u002Fforwardings) needs to get replicated to our 3 mail servers (",[30,31,32],"code",{},"mailsrv",", ",[30,35,36],{},"mx1",[30,38,39],{},"mx2","). At that time, I was using MySQL MASTER-SLAVE replication for a single database in a 4-node setup (1 master + 3 slaves).",[12,42,43,44,46],{},"For security reasons, I no longer wanted any mail server to have access to the binlog of the server that hosted our controlpanel (even though I already had that limited to a single database with mailserver related data only). I also wanted to reduce complexity a bit, just using MySQL replication for the 3 mail servers and propagating ",[30,45,32],{}," to master.",[12,48,49,50,33,53,56,57,60,61,64,65,67,68,70],{},"The mailserver data is extracted from our controlpanel database by MySQL triggers (mainly ",[30,51,52],{},"AFTER INSERT",[30,54,55],{},"AFTER UPDATE",", and ",[30,58,59],{},"BEFORE DELETE"," triggers) into a separate database ",[30,62,63],{},"mailsync",". How to get whole ",[30,66,63],{}," data stored on the remote server ",[30,69,32],{}," without using MySQL replication? I didn't want to care about this on application level.",[12,72,73,74,79],{},"That's where ",[16,75,78],{"href":76,"rel":77},"https:\u002F\u002Fdev.mysql.com\u002Fdoc\u002Frefman\u002F8.0\u002Fen\u002Ffederated-storage-engine.html",[20],"MySQL FEDERATED Storage Engine"," comes into play!",[12,81,82,83,86],{},"MySQL reference manual gives us a nice explanation for ",[30,84,85],{},"FEDERATED"," storage engine:",[88,89,90],"blockquote",{},[12,91,92,93,95,96,98],{},"The ",[30,94,85],{}," storage engine lets you access data from a remote MySQL database without using replication or cluster technology. Querying a local ",[30,97,85],{}," table automatically pulls the data from the remote (federated) tables. No data is stored on the local tables.",[12,100,101,102,104,105,108,109,111],{},"I am going to explain how to set up ",[30,103,85],{}," tables on our primary controlpanel server, called ",[30,106,107],{},"cpsrv"," below. The main database will be hosted on our primary mail server, called ",[30,110,32],{}," below. I am not going to explain how to set up MySQL replication in this article.",[113,114,116],"h2",{"id":115},"prepare-remote-host","Prepare Remote Host",[12,118,119,120,122,123,125,126,129],{},"On the remote host ",[30,121,32],{}," that is going to host database ",[30,124,63],{},", we need to set up a separate MySQL user which is going to be used for ",[30,127,128],{},"FEDERATE"," access:",[131,132,137],"pre",{"className":133,"code":134,"language":135,"meta":136,"style":136},"language-sql shiki shiki-themes github-light-default github-light-default github-dark-default","CREATE USER mailsync@cpsrv IDENTIFIED BY '********';\nGRANT SELECT, INSERT, UPDATE, DELETE ON `mailsync`.* TO mailsync@cpsrv;\n","sql","",[30,138,139,169],{"__ignoreMap":136},[140,141,144,148,151,155,159,162,166],"span",{"class":142,"line":143},"line",1,[140,145,147],{"class":146},"s5nWI","CREATE",[140,149,150],{"class":146}," USER",[140,152,154],{"class":153},"sd69k"," mailsync",[140,156,158],{"class":157},"s_bOF","@cpsrv IDENTIFIED ",[140,160,161],{"class":146},"BY",[140,163,165],{"class":164},"s-BGO"," '********'",[140,167,168],{"class":157},";\n",[140,170,172,175,178,180,183,185,188,190,193,196,199,202,205,208],{"class":142,"line":171},2,[140,173,174],{"class":146},"GRANT",[140,176,177],{"class":146}," SELECT",[140,179,33],{"class":157},[140,181,182],{"class":146},"INSERT",[140,184,33],{"class":157},[140,186,187],{"class":146},"UPDATE",[140,189,33],{"class":157},[140,191,192],{"class":146},"DELETE",[140,194,195],{"class":146}," ON",[140,197,198],{"class":164}," `mailsync`",[140,200,201],{"class":157},".",[140,203,204],{"class":146},"*",[140,206,207],{"class":146}," TO",[140,209,210],{"class":157}," mailsync@cpsrv;\n",[113,212,214],{"id":213},"prepare-source-host","Prepare Source Host",[216,217,219],"h3",{"id":218},"enable-federated-storage-engine","Enable FEDERATED Storage Engine",[12,221,222,223,226,227,229,230,233,234,237],{},"By default,  ",[16,224,78],{"href":76,"rel":225},[20]," is not enabled in MySQL. To enable ",[30,228,85],{},", you must start the MySQL server using the ",[30,231,232],{},"--federated"," option. You can configure this in your ",[30,235,236],{},"my.cnf",":",[131,239,243],{"className":240,"code":241,"filename":236,"language":242,"meta":136,"style":136},"language-ini shiki shiki-themes github-light-default github-light-default github-dark-default","[mysqld]\nfederated\n","ini",[30,244,245,251],{"__ignoreMap":136},[140,246,247],{"class":142,"line":143},[140,248,250],{"class":249},"sQJ0q","[mysqld]\n",[140,252,253],{"class":142,"line":171},[140,254,255],{"class":157},"federated\n",[12,257,258],{},"After restarting MySQL, check if the engine is enabled:",[131,260,262],{"className":133,"code":261,"language":135,"meta":136,"style":136},"mysql> SHOW ENGINES\n+--------------------+---------+\n| Engine             | Support |\n+--------------------+---------+\n| FEDERATED          | YES     |\n...\n",[30,263,264,275,284,290,297,303],{"__ignoreMap":136},[140,265,266,269,272],{"class":142,"line":143},[140,267,268],{"class":157},"mysql",[140,270,271],{"class":146},">",[140,273,274],{"class":157}," SHOW ENGINES\n",[140,276,277,280],{"class":142,"line":171},[140,278,279],{"class":146},"+",[140,281,283],{"class":282},"s9BHP","--------------------+---------+\n",[140,285,287],{"class":142,"line":286},3,[140,288,289],{"class":157},"| Engine             | Support |\n",[140,291,293,295],{"class":142,"line":292},4,[140,294,279],{"class":146},[140,296,283],{"class":282},[140,298,300],{"class":142,"line":299},5,[140,301,302],{"class":157},"| FEDERATED          | YES     |\n",[140,304,306],{"class":142,"line":305},6,[140,307,308],{"class":157},"...\n",[12,310,311,312,314,315,317,318,320,321,323,324,201],{},"We only need to enable ",[30,313,85],{}," on the server that uses ",[30,316,85],{}," tables, not on the remote host where it connects to. In my case, I had to enable ",[30,319,85],{}," on ",[30,322,107],{},", but not on ",[30,325,32],{},[216,327,329],{"id":328},"create-server","Create SERVER",[12,331,332,333,335,336,338,339,345,346,353,354,237],{},"Prepare SERVER (user credentials for ",[30,334,63],{}," user connection to ",[30,337,32],{},") for ",[16,340,342,344],{"href":76,"rel":341},[20],[30,343,85],{}," Storage Engine"," with ",[16,347,350],{"href":348,"rel":349},"https:\u002F\u002Fdev.mysql.com\u002Fdoc\u002Frefman\u002F8.0\u002Fen\u002Fcreate-server.html",[20],[30,351,352],{},"CREATE SERVER"," statement on ",[30,355,107],{},[131,357,359],{"className":133,"code":358,"language":135,"meta":136,"style":136},"CREATE SERVER mailsync\n    FOREIGN DATA WRAPPER mysql\n    OPTIONS (HOST 'mailsrv', DATABASE 'mailsync', USER 'mailsync', PASSWORD '********');\n",[30,360,361,371,382],{"__ignoreMap":136},[140,362,363,365,368],{"class":142,"line":143},[140,364,147],{"class":146},[140,366,367],{"class":146}," SERVER",[140,369,370],{"class":157}," mailsync\n",[140,372,373,376,379],{"class":142,"line":171},[140,374,375],{"class":157},"    FOREIGN ",[140,377,378],{"class":146},"DATA",[140,380,381],{"class":157}," WRAPPER mysql\n",[140,383,384,387,390,392,395,398,401,404,406,409,411],{"class":142,"line":286},[140,385,386],{"class":157},"    OPTIONS (HOST ",[140,388,389],{"class":164},"'mailsrv'",[140,391,33],{"class":157},[140,393,394],{"class":146},"DATABASE",[140,396,397],{"class":164}," 'mailsync'",[140,399,400],{"class":157},", USER ",[140,402,403],{"class":164},"'mailsync'",[140,405,33],{"class":157},[140,407,408],{"class":146},"PASSWORD",[140,410,165],{"class":164},[140,412,413],{"class":157},");\n",[12,415,416],{},"You should then test the connection:",[131,418,422],{"className":419,"code":420,"language":421,"meta":136,"style":136},"language-bash shiki shiki-themes github-light-default github-light-default github-dark-default","cpsrv$ mysql -u mailsync -h mailsrv -p -e 'SELECT USER()'\n+----------------+\n| USER()         |\n+----------------+\n| mailsync@cpsrv |\n+----------------+\n","bash",[30,423,424,453,458,471,475,485],{"__ignoreMap":136},[140,425,426,429,432,436,438,441,444,447,450],{"class":142,"line":143},[140,427,428],{"class":249},"cpsrv$",[140,430,431],{"class":164}," mysql",[140,433,435],{"class":434},"sDkKp"," -u",[140,437,154],{"class":164},[140,439,440],{"class":434}," -h",[140,442,443],{"class":164}," mailsrv",[140,445,446],{"class":434}," -p",[140,448,449],{"class":434}," -e",[140,451,452],{"class":164}," 'SELECT USER()'\n",[140,454,455],{"class":142,"line":171},[140,456,457],{"class":249},"+----------------+\n",[140,459,460,463,465,468],{"class":142,"line":286},[140,461,462],{"class":146},"|",[140,464,150],{"class":153},[140,466,467],{"class":157},"()         ",[140,469,470],{"class":146},"|\n",[140,472,473],{"class":142,"line":292},[140,474,457],{"class":249},[140,476,477,479,482],{"class":142,"line":299},[140,478,462],{"class":146},[140,480,481],{"class":249}," mailsync@cpsrv",[140,483,484],{"class":146}," |\n",[140,486,487],{"class":142,"line":305},[140,488,457],{"class":249},[113,490,492,493,495],{"id":491},"setup-federated-tables","Setup ",[30,494,85],{}," tables",[12,497,498,499,501,502,504,505,508,509,512,513,516,517,520],{},"Assuming we already have set up the remote database ",[30,500,63],{}," on remote ",[30,503,32],{}," and have a table schema from that whole database at hand. You should now copy that db schema ",[30,506,507],{},"mailsync-schema.sql"," to ",[30,510,511],{},"mailsync-schema-federated.sql"," and simply add ",[30,514,515],{},"ENGINE=FEDERATED CONNECTION='mailsync\u002F\u003Ctablename>'"," at the end of every ",[30,518,519],{},"CREATE TABLE"," statement, e.g.:",[131,522,524],{"className":133,"code":523,"filename":511,"language":135,"meta":136,"style":136},"CREATE SCHEMA IF NOT EXISTS `mailsync` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ;\nUSE `mailsync` ;\n\nCREATE TABLE IF NOT EXISTS `mailmaps` (...)\nENGINE = FEDERATED\nCONNECTION = 'mailsync\u002Fmailmaps';\n\nCREATE TABLE IF NOT EXISTS `mailaccounts` (...)\nENGINE = FEDERATED\nCONNECTION = 'mailsync\u002Fmailaccounts';\n",[30,525,526,562,572,578,597,608,621,626,644,653],{"__ignoreMap":136},[140,527,528,530,533,536,539,542,544,547,550,553,556,559],{"class":142,"line":143},[140,529,147],{"class":146},[140,531,532],{"class":146}," SCHEMA",[140,534,535],{"class":153}," IF",[140,537,538],{"class":146}," NOT",[140,540,541],{"class":146}," EXISTS",[140,543,198],{"class":164},[140,545,546],{"class":146}," DEFAULT",[140,548,549],{"class":146}," CHARACTER",[140,551,552],{"class":146}," SET",[140,554,555],{"class":157}," utf8mb4 ",[140,557,558],{"class":146},"COLLATE",[140,560,561],{"class":157}," utf8mb4_unicode_ci ;\n",[140,563,564,567,569],{"class":142,"line":171},[140,565,566],{"class":146},"USE",[140,568,198],{"class":164},[140,570,571],{"class":157}," ;\n",[140,573,574],{"class":142,"line":286},[140,575,577],{"emptyLinePlaceholder":576},true,"\n",[140,579,580,582,585,587,589,591,594],{"class":142,"line":292},[140,581,147],{"class":146},[140,583,584],{"class":146}," TABLE",[140,586,535],{"class":153},[140,588,538],{"class":146},[140,590,541],{"class":146},[140,592,593],{"class":164}," `mailmaps`",[140,595,596],{"class":157}," (...)\n",[140,598,599,602,605],{"class":142,"line":299},[140,600,601],{"class":157},"ENGINE ",[140,603,604],{"class":146},"=",[140,606,607],{"class":157}," FEDERATED\n",[140,609,610,613,616,619],{"class":142,"line":305},[140,611,612],{"class":146},"CONNECTION",[140,614,615],{"class":146}," =",[140,617,618],{"class":164}," 'mailsync\u002Fmailmaps'",[140,620,168],{"class":157},[140,622,624],{"class":142,"line":623},7,[140,625,577],{"emptyLinePlaceholder":576},[140,627,629,631,633,635,637,639,642],{"class":142,"line":628},8,[140,630,147],{"class":146},[140,632,584],{"class":146},[140,634,535],{"class":153},[140,636,538],{"class":146},[140,638,541],{"class":146},[140,640,641],{"class":164}," `mailaccounts`",[140,643,596],{"class":157},[140,645,647,649,651],{"class":142,"line":646},9,[140,648,601],{"class":157},[140,650,604],{"class":146},[140,652,607],{"class":157},[140,654,656,658,660,663],{"class":142,"line":655},10,[140,657,612],{"class":146},[140,659,615],{"class":146},[140,661,662],{"class":164}," 'mailsync\u002Fmailaccounts'",[140,664,168],{"class":157},[12,666,92,667,670,671,673,674,676,677,679,680,682],{},[30,668,669],{},"mailsync\u002F"," prefix in ",[30,672,612],{}," refers to the connection we have set up with ",[30,675,352],{}," (see above). You should use exactly the same table schema on both MySQL servers. And no, ",[30,678,85],{}," cannot detect the remote table schema, so you need to copy the whole ",[30,681,519],{}," field definitions. The schema on the source host will the just act as a skeleton to access the remote data.",[12,684,685,686,688,689,691],{},"Remember, no data of that ",[30,687,63],{}," database is ever stored on our source server ",[30,690,107],{},", so you could reload the whole database schema at any time like this without loosing any data:",[131,693,695],{"className":419,"code":694,"language":421,"meta":136,"style":136},"cpsrv$ mysql -e 'DROP DATABASE `mailsync`'\ncpsrv$ mysql \u003C mailsync-schema-federated.sql\n",[30,696,697,708],{"__ignoreMap":136},[140,698,699,701,703,705],{"class":142,"line":143},[140,700,428],{"class":249},[140,702,431],{"class":164},[140,704,449],{"class":434},[140,706,707],{"class":164}," 'DROP DATABASE `mailsync`'\n",[140,709,710,712,714,717],{"class":142,"line":171},[140,711,428],{"class":249},[140,713,431],{"class":164},[140,715,716],{"class":146}," \u003C",[140,718,719],{"class":164}," mailsync-schema-federated.sql\n",[12,721,722,723,725,726,728],{},"You can now ",[30,724,182],{}," data into this database and it will actually be inserted directly on the remote host ",[30,727,32],{},", all transparently and magically.",[113,730,732],{"id":731},"possible-problems","Possible Problems",[216,734,736],{"id":735},"communication-link-failure","Communication link failure",[12,738,739,740,742],{},"Up until MySQL 8.0.23, ",[30,741,85],{}," was working just perfectly without any single issue. Communication between the two hosts was super stable. But since MySQL 8.0.24, wet started to see sporadic errors on the source host like:",[131,744,749],{"className":745,"code":747,"language":748},[746],"language-text","Communication link failure: 1160 Got an error writing communication packets\nCommunication link failure: 1156 Got packets out of order\n","text",[30,750,747],{"__ignoreMap":136},[12,752,753,754,759,760,237],{},"I was able to track this down to the ",[16,755,757,344],{"href":76,"rel":756},[20],[30,758,85],{}," and the problem seems to be related to the newly introduced ",[16,761,764],{"href":762,"rel":763},"https:\u002F\u002Fdev.mysql.com\u002Fdoc\u002Frelnotes\u002Fmysql\u002F8.0\u002Fen\u002Fnews-8-0-24.html#mysqld-8-0-24-connection-management",[20],"connection management in MySQL 8.0.24",[88,766,767,773,800,810],{},[12,768,769],{},[770,771,772],"strong",{},"Connection Management Notes",[12,774,775,776,783,784,791,792,799],{},"Previously, if a client did not use the connection to the server within the period specified by the ",[16,777,780],{"href":778,"rel":779},"https:\u002F\u002Fdev.mysql.com\u002Fdoc\u002Frefman\u002F8.0\u002Fen\u002Fserver-system-variables.html#sysvar_wait_timeout",[20],[30,781,782],{},"wait_timeout"," system variable and the server closed the connection, the client received no notification of the reason. Typically, the client would see Lost connection to MySQL server during query (",[16,785,788],{"href":786,"rel":787},"https:\u002F\u002Fdev.mysql.com\u002Fdoc\u002Fmysql-errors\u002F8.0\u002Fen\u002Fclient-error-reference.html#error_cr_server_lost",[20],[30,789,790],{},"CR_SERVER_LOST",") or MySQL server has gone away (",[16,793,796],{"href":794,"rel":795},"https:\u002F\u002Fdev.mysql.com\u002Fdoc\u002Fmysql-errors\u002F8.0\u002Fen\u002Fclient-error-reference.html#error_cr_server_gone_error",[20],[30,797,798],{},"CR_SERVER_GONE_ERROR",").",[12,801,802,803,799],{},"In such cases, the server now writes the reason to the connection before closing it, and client receives a more informative error message, The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior. (",[16,804,807],{"href":805,"rel":806},"https:\u002F\u002Fdev.mysql.com\u002Fdoc\u002Fmysql-errors\u002F8.0\u002Fen\u002Fserver-error-reference.html#error_er_client_interaction_timeout",[20],[30,808,809],{},"ER_CLIENT_INTERACTION_TIMEOUT",[12,811,812],{},"The previous behavior still applies for client connections to older servers and connections to the server by older clients.",[12,814,815],{},"I have reported this issue in Percona Community Forum:",[817,818,819],"ul",{},[820,821,822],"li",{},[16,823,826,827,829],{"href":824,"rel":825},"https:\u002F\u002Fforums.percona.com\u002Ft\u002Fmysql-8-0-24-8-0-25-connection-problems-with-federated-storage-engine-communication-link-failure\u002F11487",[20],"MySQL 8.0.24 \u002F 8.0.25 connection problems with ",[30,828,85],{}," storage engine (Communication link failure)",[12,831,832,833,838],{},"Until now, the problem still is not resolved and I am still waiting for a response on that forum post. But setting ",[16,834,836],{"href":778,"rel":835},[20],[30,837,782],{}," high enough (raising it from default 8h to 24h) as a workaround almost made this issue disappear.",[12,840,841,842,844],{},"Set this on your remote host (the one your ",[30,843,85],{}," tables connect to):",[131,846,848],{"className":240,"code":847,"filename":236,"language":242,"meta":136,"style":136},"[mysqld]\ninteractive_timeout     = 86400\nwait_timeout            = 86400\n",[30,849,850,854,862],{"__ignoreMap":136},[140,851,852],{"class":142,"line":143},[140,853,250],{"class":249},[140,855,856,859],{"class":142,"line":171},[140,857,858],{"class":146},"interactive_timeout",[140,860,861],{"class":157},"     = 86400\n",[140,863,864,866],{"class":142,"line":286},[140,865,782],{"class":146},[140,867,868],{"class":157},"            = 86400\n",[12,870,871],{},"I will keep you posted here, if MySQL fixes this for good or if I find a real solution for it.",[873,874,875],"style",{},"html pre.shiki code .s5nWI, html code.shiki .s5nWI{--shiki-light:#CF222E;--shiki-default:#CF222E;--shiki-dark:#FF7B72}html pre.shiki code .sd69k, html code.shiki .sd69k{--shiki-light:#8250DF;--shiki-default:#8250DF;--shiki-dark:#D2A8FF}html pre.shiki code .s_bOF, html code.shiki .s_bOF{--shiki-light:#1F2328;--shiki-default:#1F2328;--shiki-dark:#E6EDF3}html pre.shiki code .s-BGO, html code.shiki .s-BGO{--shiki-light:#0A3069;--shiki-default:#0A3069;--shiki-dark:#A5D6FF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sQJ0q, html code.shiki .sQJ0q{--shiki-light:#953800;--shiki-default:#953800;--shiki-dark:#FFA657}html pre.shiki code .s9BHP, html code.shiki .s9BHP{--shiki-light:#6E7781;--shiki-default:#6E7781;--shiki-dark:#8B949E}html pre.shiki code .sDkKp, html code.shiki .sDkKp{--shiki-light:#0550AE;--shiki-default:#0550AE;--shiki-dark:#79C0FF}",{"title":136,"searchDepth":171,"depth":286,"links":877},[878,879,883,885],{"id":115,"depth":171,"text":116},{"id":213,"depth":171,"text":214,"children":880},[881,882],{"id":218,"depth":286,"text":219},{"id":328,"depth":286,"text":329},{"id":491,"depth":171,"text":884},"Setup FEDERATED tables",{"id":731,"depth":171,"text":732,"children":886},[887],{"id":735,"depth":286,"text":736},null,"2021-07-24","Use MySQL FEDERATED storage engine to store data on a remote MySQL server that acts as a replication master.",{"type":9,"value":892},[893,907,911,925],[12,894,14,895,22,898,28,901,33,903,33,905,40],{},[16,896,21],{"href":18,"rel":897},[20],[16,899,27],{"href":25,"rel":900},[20],[30,902,32],{},[30,904,36],{},[30,906,39],{},[12,908,43,909,46],{},[30,910,32],{},[12,912,49,913,33,915,56,917,60,919,64,921,67,923,70],{},[30,914,52],{},[30,916,55],{},[30,918,59],{},[30,920,63],{},[30,922,63],{},[30,924,32],{},[12,926,73,927,79],{},[16,928,78],{"href":76,"rel":929},[20],"md","\u002Fimages\u002Fcovers\u002Fmysql-federated.jpg",{},"\u002Farticles\u002F20210724-mysql-federated",false,{"title":6,"description":890},"articles\u002F20210724-mysql-federated",[268,938,939],"sysadmin","linux","ooSRDPNhBCY9sJbkB4iDGfa9CWR3o-cnq04Fz9g6JBw",[942,947],{"title":943,"path":944,"stem":945,"createdAt":946,"children":-1},"Recursively fetch dependent rows with mysqldump","\u002Farticles\u002F20210705-mysqldump-dependent-rows","articles\u002F20210705-mysqldump-dependent-rows","2021-07-05",{"title":948,"path":949,"stem":950,"createdAt":951,"children":-1},"APFS Encryption Status","\u002Farticles\u002F20210728-apfs-encryption-status","articles\u002F20210728-apfs-encryption-status","2021-07-28",1794961391425]