{"id":23743,"date":"2020-02-07T20:34:35","date_gmt":"2020-02-07T13:34:35","guid":{"rendered":"http:\/\/tom.ji42.com\/?p=23743"},"modified":"2020-02-07T20:34:35","modified_gmt":"2020-02-07T13:34:35","slug":"%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5-dump-mysql-%e0%b8%88%e0%b8%b2%e0%b8%81-remote-database","status":"publish","type":"post","link":"https:\/\/tom.tomwork.net\/?p=23743","title":{"rendered":"\u0e27\u0e34\u0e18\u0e35 Dump mySQL \u0e08\u0e32\u0e01 Remote Database"},"content":{"rendered":"<div class=\"entry-thumbnail\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-post-thumbnail size-post-thumbnail wp-post-image\" src=\"https:\/\/green.in.th\/wp-content\/uploads\/2019\/11\/Dump-mySQL-db-from-Remote-Database-to-Local-Database.jpg\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" srcset=\"https:\/\/green.in.th\/wp-content\/uploads\/2019\/11\/Dump-mySQL-db-from-Remote-Database-to-Local-Database.jpg 921w, https:\/\/green.in.th\/wp-content\/uploads\/2019\/11\/Dump-mySQL-db-from-Remote-Database-to-Local-Database-300x165.jpg 300w, https:\/\/green.in.th\/wp-content\/uploads\/2019\/11\/Dump-mySQL-db-from-Remote-Database-to-Local-Database-768x422.jpg 768w, https:\/\/green.in.th\/wp-content\/uploads\/2019\/11\/Dump-mySQL-db-from-Remote-Database-to-Local-Database-650x357.jpg 650w, https:\/\/green.in.th\/wp-content\/uploads\/2019\/11\/Dump-mySQL-db-from-Remote-Database-to-Local-Database-80x44.jpg 80w\" alt=\"Dump mySQL db from Remote Database to Local Database\" width=\"921\" height=\"506\" \/><\/div>\n<p>\u0e43\u0e19\u0e01\u0e23\u0e13\u0e35\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 Backup Database \u0e08\u0e32\u0e01 Remote Database \u0e2b\u0e23\u0e37\u0e2d\u0e17\u0e33\u0e01\u0e32\u0e23\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e17\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2b\u0e25\u0e31\u0e01\u0e21\u0e32\u0e40\u0e01\u0e47\u0e1a\u0e44\u0e27\u0e49\u0e17\u0e35\u0e48 Local Server \u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49\u0e2d\u0e32\u0e08\u0e08\u0e30\u0e0a\u0e48\u0e27\u0e22\u0e41\u0e01\u0e49\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e41\u0e25\u0e30\u0e25\u0e14\u0e40\u0e27\u0e25\u0e32\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e44\u0e21\u0e48\u0e21\u0e32\u0e01\u0e01\u0e47\u0e19\u0e49\u0e2d\u0e22<br \/>\n\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e02\u0e2d\u0e07\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e01\u0e47\u0e04\u0e37\u0e2d\u0e1c\u0e21\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a Assign \u0e07\u0e32\u0e19\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23 Sync-up \u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 Requirement \u0e04\u0e37\u0e2d \u0e01\u0e32\u0e23\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e17\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2b\u0e25\u0e31\u0e01\u0e21\u0e32\u0e17\u0e35\u0e48 Local Database \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2b\u0e25\u0e31\u0e01 \u0e2b\u0e23\u0e37\u0e2d Remote Database \u0e19\u0e31\u0e49\u0e19\u0e08\u0e30\u0e0a\u0e49\u0e32\u0e16\u0e49\u0e32\u0e40\u0e23\u0e32 Connect \u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e42\u0e14\u0e22\u0e15\u0e23\u0e07 \u0e2b\u0e23\u0e37\u0e2d\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46\u0e2d\u0e22\u0e32\u0e01\u0e08\u0e30\u0e40\u0e2d\u0e32\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e23\u0e13\u0e35\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 Backup \u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e01\u0e47\u0e44\u0e14\u0e49\u0e19\u0e30<!--more--><span id=\"more-3051\"><\/span><\/p>\n<p>\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e04\u0e37\u0e2d\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e40\u0e23\u0e32 Remote \u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e17\u0e35\u0e48 Local Database \u0e41\u0e25\u0e49\u0e27\u0e25\u0e2d\u0e07 Connect \u0e44\u0e1b\u0e17\u0e35\u0e48\u0e2a\u0e16\u0e32\u0e19\u0e35\u0e1b\u0e25\u0e32\u0e22\u0e17\u0e32\u0e07\u0e14\u0e39\u0e01\u0e48\u0e2d\u0e19\u0e27\u0e48\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16 Connect \u0e44\u0e14\u0e49\u0e44\u0e2b\u0e21 \u0e1c\u0e21\u0e43\u0e0a\u0e49 Command<\/p>\n<blockquote><p><code>mysql --host=localhost --user=myname --password=password mydb<\/code><\/p><\/blockquote>\n<p>\u0e14\u0e39\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e20\u0e32\u0e29\u0e32\u0e2d\u0e31\u0e07\u0e01\u0e24\u0e29\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e44\u0e14\u0e49 &gt;&gt;<a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/connecting.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u0e17\u0e35\u0e48\u0e19\u0e35\u0e48<\/a>&lt;&lt;<\/p>\n<p>\u0e16\u0e49\u0e32\u0e44\u0e21\u0e48\u0e21\u0e35\u0e2d\u0e30\u0e44\u0e23\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e15\u0e48\u0e2d\u0e44\u0e14\u0e49\u0e41\u0e25\u0e49\u0e27\u0e25\u0e30\u0e01\u0e47 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e01\u0e32\u0e23 Dump \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e21\u0e32\u0e40\u0e01\u0e47\u0e1a\u0e44\u0e27\u0e49\u0e17\u0e35\u0e48 Local Database \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22 \u0e14\u0e49\u0e27\u0e22\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e19\u0e35\u0e49\u0e40\u0e25\u0e22<\/p>\n<blockquote><p><code>mysqldump<br \/>\n--host=&lt;remote-host&gt;<br \/>\n--user=&lt;remote-user&gt;<br \/>\n--password=&lt;remote-pass&gt;<br \/>\n--single-transaction<br \/>\n--ignore-table=&lt;ignore-db.table&gt; &lt;remote-db-name&gt;<br \/>\n| mysql<br \/>\n--host=localhost<br \/>\n--user=&lt;local-user&gt;<br \/>\n--password=&lt;local-pass&gt; &lt;local-db-name&gt;--password=<\/code><\/p><\/blockquote>\n<p>\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e17\u0e35\u0e48\u0e21\u0e32\u0e02\u0e2d\u0e07\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e1c\u0e21\u0e41\u0e01\u0e49\u0e44\u0e02\u0e19\u0e34\u0e14\u0e2b\u0e19\u0e48\u0e2d\u0e22 \u0e40\u0e1e\u0e34\u0e48\u0e21 \u2013ignore-table \u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b \u0e01\u0e23\u0e13\u0e35\u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19 view table \u0e21\u0e31\u0e19\u0e08\u0e30 error \u0e17\u0e33\u0e01\u0e32\u0e23 dump \u0e44\u0e21\u0e48\u0e44\u0e14\u0e49 \u0e40\u0e25\u0e22\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a ignore \u0e44\u0e27\u0e49\u0e43\u0e2b\u0e49 \u0e16\u0e49\u0e32\u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 ignore \u0e15\u0e32\u0e23\u0e32\u0e07\u0e44\u0e2b\u0e19\u0e40\u0e25\u0e22 \u0e01\u0e47\u0e25\u0e1a\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e19\u0e35\u0e49\u0e2d\u0e2d\u0e01\u0e44\u0e1b\u0e44\u0e14\u0e49<\/p>\n<p>\u0e14\u0e39\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e17\u0e35\u0e48\u0e1c\u0e21\u0e14\u0e39\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e02\u0e32\u0e21\u0e32\u0e44\u0e14\u0e49 &gt;&gt;<a href=\"https:\/\/www.commandlinefu.com\/commands\/view\/4385\/dump-mysql-db-from-remote-database-to-local-database\">\u0e17\u0e35\u0e48\u0e19\u0e35\u0e48<\/a>&lt;&lt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e43\u0e19\u0e01\u0e23\u0e13\u0e35\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 Backup Database \u0e08\u0e32\u0e01 Remote Database \u0e2b\u0e23\u0e37\u0e2d\u0e17\u0e33\u0e01\u0e32\u0e23\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e17\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2b\u0e25\u0e31\u0e01\u0e21\u0e32\u0e40\u0e01\u0e47\u0e1a\u0e44\u0e27\u0e49\u0e17\u0e35\u0e48 Local Server \u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49\u0e2d\u0e32\u0e08\u0e08\u0e30\u0e0a\u0e48\u0e27\u0e22\u0e41\u0e01\u0e49\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e41\u0e25\u0e30\u0e25\u0e14\u0e40\u0e27\u0e25\u0e32\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e44\u0e21\u0e48\u0e21\u0e32\u0e01\u0e01\u0e47\u0e19\u0e49\u0e2d\u0e22 \u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e02\u0e2d\u0e07\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e01\u0e47\u0e04\u0e37\u0e2d\u0e1c\u0e21\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a Assign \u0e07\u0e32\u0e19\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23 Sync-up \u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 Requirement \u0e04\u0e37\u0e2d \u0e01\u0e32\u0e23\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e17\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2b\u0e25\u0e31\u0e01\u0e21\u0e32\u0e17\u0e35\u0e48 Local Database \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2b\u0e25\u0e31\u0e01 \u0e2b\u0e23\u0e37\u0e2d Remote Database \u0e19\u0e31\u0e49\u0e19\u0e08\u0e30\u0e0a\u0e49\u0e32\u0e16\u0e49\u0e32\u0e40\u0e23\u0e32 Connect \u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e42\u0e14\u0e22\u0e15\u0e23\u0e07 \u0e2b\u0e23\u0e37\u0e2d\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e46\u0e2d\u0e22\u0e32\u0e01\u0e08\u0e30\u0e40\u0e2d\u0e32\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e23\u0e13\u0e35\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 Backup \u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e01\u0e47\u0e44\u0e14\u0e49\u0e19\u0e30<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13],"tags":[],"class_list":["post-23743","post","type-post","status-publish","format-standard","hentry","category-13"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6cOVM-6aX","_links":{"self":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/23743","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23743"}],"version-history":[{"count":1,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/23743\/revisions"}],"predecessor-version":[{"id":23744,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/23743\/revisions\/23744"}],"wp:attachment":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}