{"id":25258,"date":"2020-11-07T21:50:32","date_gmt":"2020-11-07T14:50:32","guid":{"rendered":"https:\/\/tom.ji42.com\/?p=25258"},"modified":"2020-11-07T21:50:32","modified_gmt":"2020-11-07T14:50:32","slug":"%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b9%80%e0%b8%a7%e0%b8%a5%e0%b8%b2-backup-mysql-%e0%b8%ad%e0%b8%b1%e0%b8%95%e0%b9%82%e0%b8%99%e0%b8%a1%e0%b8%b1%e0%b8%95","status":"publish","type":"post","link":"https:\/\/tom.tomwork.net\/?p=25258","title":{"rendered":"\u0e27\u0e34\u0e18\u0e35\u0e15\u0e31\u0e49\u0e07\u0e40\u0e27\u0e25\u0e32 Backup MySQL \u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2a\u0e33\u0e23\u0e2d\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e44\u0e27\u0e49\u0e43\u0e0a\u0e49\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e01\u0e04\u0e37\u0e19\u0e20\u0e32\u0e22\u0e2b\u0e25\u0e31\u0e07"},"content":{"rendered":"<p>\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e41\u0e25\u0e49\u0e27\u0e43\u0e0a\u0e49\u0e44\u0e14\u0e49 \u0e41\u0e15\u0e48\u0e43\u0e0a\u0e49\u0e08\u0e23\u0e34\u0e07\u0e15\u0e49\u0e2d\u0e07\u0e1b\u0e23\u0e31\u0e1a\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e40\u0e23\u0e35\u0e22\u0e01 mysqldump \u0e17\u0e35\u0e48\u0e15\u0e48\u0e32\u0e07\u0e01\u0e31\u0e19<br \/>\nOS : Windows Server<\/p>\n<p>\u0e40\u0e0a\u0e48\u0e19\u0e16\u0e49\u0e32\u0e43\u0e0a\u0e49 wamp \u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e01\u0e47\u0e08\u0e30\u0e2d\u0e22\u0e39\u0e48\u0e17\u0e35\u0e48<br \/>\nC:\\wamp\\bin\\mysql\\mysql5.5.24\\bin\\mysqldump<\/p>\n<p>\u0e16\u0e49\u0e32\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 MySQL \u0e40\u0e1e\u0e35\u0e22\u0e27\u0e46 \u0e01\u0e47\u0e04\u0e07\u0e15\u0e49\u0e2d\u0e07\u0e2b\u0e32\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e17\u0e35\u0e48\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07\u0e02\u0e2d\u0e07\u0e40\u0e0b\u0e34\u0e23\u0e4c\u0e1f\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e41\u0e15\u0e48\u0e25\u0e30\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e0a\u0e31\u0e48\u0e19<\/p>\n<p>\u0e40\u0e0a\u0e48\u0e19 C:\\Program Files\\MySQL\\MySQL Server 5.1\\bin\\mysqldump<\/p>\n<p>\u0e01\u0e32\u0e23\u0e08\u0e30\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e40\u0e27\u0e25\u0e32\u0e41\u0e1a\u0e47\u0e01\u0e2d\u0e31\u0e1e\u0e19\u0e31\u0e49\u0e19 Schedule \u0e02\u0e2d\u0e07 Windows Server \u0e43\u0e2b\u0e49\u0e40\u0e23\u0e35\u0e22\u0e01\u0e44\u0e1f\u0e25\u0e4c xxxxx.bat \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e17\u0e33\u0e07\u0e32\u0e19\u0e15\u0e32\u0e21\u0e40\u0e27\u0e25\u0e32\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14 (\u0e2b\u0e32\u0e01\u0e43\u0e0a\u0e49\u0e25\u0e35\u0e19\u0e38\u0e01\u0e0b\u0e4c\u0e01\u0e47\u0e04\u0e07\u0e08\u0e30\u0e43\u0e0a\u0e49 cronjob \u0e41\u0e25\u0e30\u0e08\u0e30\u0e2a\u0e30\u0e14\u0e27\u0e01\u0e01\u0e27\u0e48\u0e32\u0e2b\u0e32\u0e01\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e14\u0e49\u0e27\u0e22 webmin)<!--more--><\/p>\n<p>@echo off<br \/>\necho Running dump&#8230;<br \/>\nset MYDATABASE=xxxxxxx<br \/>\nset MYSQLUSER=root<br \/>\nset MYSQLPASS=xxxxxxx<br \/>\nset BACKUPFILE=&#8221;F:\\Backup\\MySQL\\%MYDATABASE%_%date:~10,4%-%date:~4,2%-%date:~7,2%_TIME.%time:~0,2%.%time:~3,2%.sql&#8221;<br \/>\nC:\\wamp\\bin\\mysql\\mysql5.5.24\\bin\\mysqldump -u%MYSQLUSER% -p%MYSQLPASS% &#8211;result-file=%BACKUPFILE% %MYDATABASE%<br \/>\necho Done! %BACKUPFILE%<br \/>\n\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e41\u0e1a\u0e47\u0e01\u0e2d\u0e31\u0e1e\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e02\u0e19\u0e32\u0e14 1GB \u0e43\u0e0a\u0e49\u0e40\u0e27\u0e25\u0e32\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e41\u0e04\u0e48 1 \u0e19\u0e32\u0e17\u0e35\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19<br \/>\n\u0e2a\u0e48\u0e27\u0e19\u0e1c\u0e25\u0e02\u0e49\u0e32\u0e07\u0e40\u0e04\u0e35\u0e22\u0e07\u0e2b\u0e23\u0e37\u0e2d\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e2d\u0e37\u0e48\u0e19\u0e46\u0e22\u0e31\u0e07\u0e44\u0e21\u0e48\u0e17\u0e23\u0e32\u0e1a \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e19\u0e1c\u0e48\u0e32\u0e19 mysqldump \u0e01\u0e47\u0e44\u0e21\u0e48\u0e19\u0e48\u0e32\u0e08\u0e30\u0e21\u0e35\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e2d\u0e30\u0e44\u0e23 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e25\u0e2d\u0e07 Import \u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e14\u0e39\u0e01\u0e47\u0e1c\u0e48\u0e32\u0e19\u0e09\u0e25\u0e38\u0e22<\/p>\n<p>\u0e41\u0e15\u0e48\u0e17\u0e35\u0e48\u0e41\u0e19\u0e48\u0e46 \u0e40\u0e02\u0e32\u0e1a\u0e2d\u0e01\u0e27\u0e48\u0e32\u0e14\u0e35\u0e01\u0e27\u0e48\u0e32 Batch Script \u0e15\u0e31\u0e27\u0e40\u0e14\u0e34\u0e21\u0e17\u0e35\u0e48\u0e1c\u0e21\u0e43\u0e0a\u0e49\u0e2d\u0e22\u0e39\u0e48<br \/>\n(\u0e41\u0e1a\u0e1a\u0e40\u0e14\u0e34\u0e21\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e44\u0e14\u0e40\u0e23\u0e01\u0e17\u0e2d\u0e23\u0e35\u0e48\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e31\u0e49\u0e07\u0e14\u0e38\u0e49\u0e19)<\/p>\n<p>\u0e2d\u0e22\u0e32\u0e01\u0e23\u0e39\u0e49\u0e27\u0e48\u0e32 MySQL \u0e17\u0e35\u0e48\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e19\u0e31\u0e49\u0e19\u0e2d\u0e22\u0e39\u0e48\u0e17\u0e35\u0e48\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e43\u0e14\u0e43\u0e19\u0e23\u0e30\u0e1a\u0e1a\u0e1b\u0e0f\u0e34\u0e1a\u0e31\u0e15\u0e34\u0e01\u0e32\u0e23\u0e17\u0e35\u0e48\u0e17\u0e48\u0e32\u0e19\u0e43\u0e0a\u0e49\u0e25\u0e2d\u0e07\u0e2d\u0e48\u0e32\u0e19\u0e14\u0e39<br \/>\nhttp:\/\/dev.mysql.com\/doc\/refman\/5.0\/en\/option-files.html<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e41\u0e25\u0e49\u0e27\u0e43\u0e0a\u0e49\u0e44\u0e14\u0e49 \u0e41\u0e15\u0e48\u0e43\u0e0a\u0e49\u0e08\u0e23\u0e34\u0e07\u0e15\u0e49\u0e2d\u0e07\u0e1b\u0e23\u0e31\u0e1a\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e40\u0e23\u0e35\u0e22\u0e01 mysqldump \u0e17\u0e35\u0e48\u0e15\u0e48\u0e32\u0e07\u0e01\u0e31\u0e19 OS : Windows Server \u0e40\u0e0a\u0e48\u0e19\u0e16\u0e49\u0e32\u0e43\u0e0a\u0e49 wamp \u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e01\u0e47\u0e08\u0e30\u0e2d\u0e22\u0e39\u0e48\u0e17\u0e35\u0e48 C:\\wamp\\bin\\mysql\\mysql5.5.24\\bin\\mysqldump \u0e16\u0e49\u0e32\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 MySQL \u0e40\u0e1e\u0e35\u0e22\u0e27\u0e46 \u0e01\u0e47\u0e04\u0e07\u0e15\u0e49\u0e2d\u0e07\u0e2b\u0e32\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e17\u0e35\u0e48\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07\u0e02\u0e2d\u0e07\u0e40\u0e0b\u0e34\u0e23\u0e4c\u0e1f\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e41\u0e15\u0e48\u0e25\u0e30\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e0a\u0e31\u0e48\u0e19 \u0e40\u0e0a\u0e48\u0e19 C:\\Program Files\\MySQL\\MySQL Server 5.1\\bin\\mysqldump \u0e01\u0e32\u0e23\u0e08\u0e30\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e40\u0e27\u0e25\u0e32\u0e41\u0e1a\u0e47\u0e01\u0e2d\u0e31\u0e1e\u0e19\u0e31\u0e49\u0e19 Schedule \u0e02\u0e2d\u0e07 Windows Server \u0e43\u0e2b\u0e49\u0e40\u0e23\u0e35\u0e22\u0e01\u0e44\u0e1f\u0e25\u0e4c xxxxx.bat \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e17\u0e33\u0e07\u0e32\u0e19\u0e15\u0e32\u0e21\u0e40\u0e27\u0e25\u0e32\u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14 (\u0e2b\u0e32\u0e01\u0e43\u0e0a\u0e49\u0e25\u0e35\u0e19\u0e38\u0e01\u0e0b\u0e4c\u0e01\u0e47\u0e04\u0e07\u0e08\u0e30\u0e43\u0e0a\u0e49 cronjob \u0e41\u0e25\u0e30\u0e08\u0e30\u0e2a\u0e30\u0e14\u0e27\u0e01\u0e01\u0e27\u0e48\u0e32\u0e2b\u0e32\u0e01\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e14\u0e49\u0e27\u0e22 webmin)<\/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-25258","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-6zo","_links":{"self":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/25258","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=25258"}],"version-history":[{"count":1,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/25258\/revisions"}],"predecessor-version":[{"id":25259,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/25258\/revisions\/25259"}],"wp:attachment":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}