Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723
{"id":292,"date":"2013-07-15T21:25:17","date_gmt":"2013-07-16T05:25:17","guid":{"rendered":"http:\/\/blog.unethost.com\/?p=292"},"modified":"2014-04-16T16:33:56","modified_gmt":"2014-04-16T08:33:56","slug":"mysql-export-import","status":"publish","type":"post","link":"https:\/\/blog.unethost.com\/mysql-export-import\/","title":{"rendered":"mysql export import"},"content":{"rendered":"

\u5982\u679c\u8981\u5099\u5206\u6216\u662f\u9084\u539f\u8cc7\u6599\u5eab\uff0c\u9047\u5230\u8cc7\u6599\u5eab\u8d85\u904e\u4e00\u5b9a\u7684\u5927\u5c0f\uff0c\u4f8b\u598220MB\u4e4b\u5f8c\uff0c\u8a31\u591aphp\u7248\u672c\u7684\u81ea\u52d5\u532f\u51fa\/\u532f\u5165\u7a0b\u5f0f\u90fd\u6703\u51fa\u554f\u984c\u3002\u56e0\u70baphp\u7a0b\u5f0f\u6703\u53d7\u5230 max_upload_size, max_execution_time\u7b49\u53c3\u6578\u7684\u9650\u5236\u3002\u751a\u81f3\u9023phpmyadmin\u4e5f\u6703\u6709\u4e0d\u7ba1\u7528\u7684\u6642\u5019\u3002<\/p>\n

\u9047\u5230\u9019\u7a2e\u6642\u5019\uff0c\u5982\u679c\u8ffd\u6c42\u901f\u5ea6(\u4e0d\u8a08\u96e3\u5ea6<\/del>)\uff0c\u6700\u6709\u6548\u7387\u7684\u65b9\u6cd5\uff0c\u81ea\u7136\u662f\u900f\u904essh\u767b\u5165\uff0c\u76f4\u63a5\u4e0bmysqldump\u6307\u4ee4\u4f86\u89e3\u6c7a\u554f\u984c\u3002<\/p>\n

\u532f\u51fa<\/span>\uff1a mysqldump -u \u4f7f\u7528\u8005\u540d\u7a31 -p –opt \u00a0-h localhost \u00a0\u8cc7\u6599\u5eab\u540d\u7a31 > \u6a94\u6848\u540d.sql
\n\u532f\u5165<\/span>\uff1a mysql -u \u4f7f\u7528\u8005\u540d\u7a31 -p \u8cc7\u6599\u5eab\u540d\u7a31 <\u00a0\u6a94\u6848\u540d.sql<\/p>\n

\u7136\u800c\uff0c\u4e0a\u8ff0\u7684\u65b9\u6cd5\uff0c\u727d\u626f\u5230\u4f7f\u7528ssh\u3002\u9019\u5c0d\u5f88\u591a\u53ea\u6703\u7528ftp\u7684\u4f7f\u7528\u8005\u662f\u4e00\u5927\u9580\u6abb\u3002\u7576\u7136\uff0c\u4e5f\u662f\u6709\u4e0d\u9700\u8981ssh\u7684\u89e3\u6cd5\u3002
\n(*) \u532f\u51fa<\/span> \u00a0 backup your mysql database using php\u00a0<\/a><\/p>\n

\u7a0b\u5f0f\u5728\u9019\u908a<\/a>\uff0c\u4f7f\u7528\u65b9\u6cd5\uff1a
\n(1) \u4fee\u6539\u9019\u4e00\u884c
\nbackup_tables(‘localhost’,”\u4f7f\u7528\u8005\u540d”,”\u5bc6\u78bc”,”\u8cc7\u6599\u5eab\u540d”);
\n(2) \u900f\u904e\u7db2\u9801\u4f86\u555f\u52d5\u9019\u500bphp\u6a94\u3002
\n(3) \u57f7\u884c\u5b8c\u5f8c\uff0c\u9019\u500bphp\u6a94\u6703\u81ea\u52d5\u751f\u6210\u4e00\u500bmysql database\u7684\u532f\u51fa\u6a94\u3002\u518d\u7528ftp\u4e0b\u8f09\u5373\u53ef\u3002<\/p>\n

\u9019\u500b\u7a0b\u5f0f\u770b\u8d77\u4f86\u9084\u6eff\u8907\u96dc\u7684\uff0c\u6709\u4e9b\u4eba\u5fc3\u88e1\u61c9\u8a72\u6703\u6709\u7591\u60d1\uff0c\u660e\u660ephp\u4e5f\u53ef\u4ee5\u76f4\u63a5\u547c\u53eb linux\u7684\u6307\u4ee4\u5427\uff1f php\u53ef\u4ee5\u505a\u9019\u4ef6\u4e8b\uff0c\u4f46\u662f\uff0c\u5728\u865b\u64ec\u4e3b\u6a5f\u7684\u74b0\u5883\u4e2d\uff0c\u70ba\u4e86\u5b89\u5168\u6027\uff0c\u9019\u500b\u76f4\u63a5\u547c\u53eb linux\u6307\u4ee4\u529f\u80fd\u4e00\u5411\u662f\u88ab\u95dc\u9589\u7684\u3002\u6240\u4ee5\u624d\u9700\u8981\u5beb\u5f97\u9019\u9ebc\u9ebb\u7169\u3002<\/p>\n

(*) \u532f\u5165<\/span> \u00a0BigDump<\/a><\/p>\n

\u4f7f\u7528\u65b9\u6cd5\u5982\u4e0b\uff1a
\n(1) \u5728bigdump\u7684\u5b98\u7db2\u4e0a\uff0c\u4e0b\u8f09bigdump.php\u9019\u500b\u6a94\u6848\u7684\u58d3\u7e2e\u6a94\u3002\u4e26\u4e14\u89e3\u58d3\u7e2e\u3002
\n(2) \u4fee\u6539bigdump.php\u7684\u5167\u5bb9<\/p>\n

$db_server = '\u4e3b\u6a5f\u540d\u7a31';\uff08\u4e00\u822c\u70balocalhost\uff09\r\n$db_name = '\u8cc7\u6599\u5eab\u540d\u7a31';\r\n$db_username = '\u4f7f\u7528\u8005\u5e33\u865f';\r\n>$db_password = '\u4f7f\u7528\u8005\u5bc6\u78bc'<\/pre>\n

(3) \u00a0\u4fee\u6539bigdump.php\u7684\u5167\u5bb9<\/p>\n

$filename = '\u6a94\u6848\u540d\u7a31.sql';\r\n$ajax = true;\r\n$linespersession = 3000; (\u8a2d\u5b9a\u6bcf\u6b21\u9084\u539f\u5e7e\u7b46\u8cc7\u6599)\r\n$delaypersession = 5000; (\u6bcf\u6b21\u9593\u9694\u4f11\u606f\u6642\u9593\uff0c\u8a2d\u5b9a5000\u70ba\u4f11\u606f5\u79d2\u9418\u3002)<\/pre>\n

(4) \u5c07\u300cbigdump.php\u300d\u8207\u300c\u6a94\u6848\u540d\u7a31.sql\u300d\u653e\u5165\u540c\u4e00\u500b\u8cc7\u6599\u593e\uff0c\u4e26\u4e0a\u50b3\u81f3\u4f3a\u670d\u5668\u3002
\n\u6700\u5f8c\u6253\u958b\u700f\u89bd\u5668\u8f38\u5165bigdump.php \u6240\u5728\u7db2\u5740\uff0c\u5982: http:\/\/domain.tw\/dump\/bigdump.php<\/p>\n

(5)\u7576\u85cdbar\u5168\u6eff\u5f8c\uff0c\u51fa\u73fe\u300cCongratulations: End of file reached, assuming OK\u300d\u7684\u8a0a\u606f\u5f8c\uff0c\u8868\u793a\u8cc7\u6599\u5eab\u532f\u5165\u5b8c\u6210\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5982\u679c\u8981\u5099\u5206\u6216\u662f\u9084\u539f\u8cc7\u6599\u5eab\uff0c\u9047\u5230\u8cc7\u6599\u5eab\u8d85\u904e\u4e00\u5b9a\u7684\u5927\u5c0f\uff0c\u4f8b\u598220MB\u4e4b\u5f8c\uff0c\u8a31\u591aphp\u7248\u672c\u7684\u81ea\u52d5\u532f\u51fa\/\u532f\u5165\u7a0b\u5f0f\u90fd\u6703\u51fa … \u95b1\u8b80\u5168\u6587 mysql export import<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[3],"tags":[77,78,22,76],"_links":{"self":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/292"}],"collection":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/comments?post=292"}],"version-history":[{"count":8,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/292\/revisions"}],"predecessor-version":[{"id":576,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/292\/revisions\/576"}],"wp:attachment":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/media?parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/categories?post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/tags?post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}