﻿{"id":827,"date":"2021-01-10T19:54:46","date_gmt":"2021-01-10T11:54:46","guid":{"rendered":"https:\/\/byy3.com\/?p=827"},"modified":"2021-01-10T19:56:38","modified_gmt":"2021-01-10T11:56:38","slug":"mysql%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4%e5%a4%a7%e5%85%a8","status":"publish","type":"post","link":"https:\/\/byy3.com\/?p=827","title":{"rendered":"mysql\u5e38\u7528\u547d\u4ee4\u5927\u5168"},"content":{"rendered":"<p>\u4e00\u3001\u8fde\u63a5MYSQL\u3002<\/p>\n<p>\u683c\u5f0f\uff1a mysql -h\u4e3b\u673a\u5730\u5740 -u\u7528\u6237\u540d \uff0dp\u7528\u6237\u5bc6\u7801<\/p>\n<p>1\u3001\u8fde\u63a5\u5230\u672c\u673a\u4e0a\u7684MYSQL\u3002<\/p>\n<p>\u9996\u5148\u6253\u5f00DOS\u7a97\u53e3\uff0c\u7136\u540e\u8fdb\u5165\u76ee\u5f55mysql\\bin\uff0c\u518d\u952e\u5165\u547d\u4ee4mysql -u root -p\uff0c\u56de\u8f66\u540e\u63d0\u793a\u4f60\u8f93\u5bc6\u7801.\u6ce8\u610f\u7528\u6237\u540d\u524d\u53ef\u4ee5\u6709\u7a7a\u683c\u4e5f\u53ef\u4ee5\u6ca1\u6709\u7a7a\u683c\uff0c\u4f46\u662f\u5bc6\u7801\u524d\u5fc5\u987b\u6ca1\u6709\u7a7a\u683c\uff0c\u5426\u5219\u8ba9\u4f60\u91cd\u65b0\u8f93\u5165\u5bc6\u7801.<\/p>\n<p>\u5982\u679c\u521a\u5b89\u88c5\u597dMYSQL\uff0c\u8d85\u7ea7\u7528\u6237root\u662f\u6ca1\u6709\u5bc6\u7801\u7684\uff0c\u6545\u76f4\u63a5\u56de\u8f66\u5373\u53ef\u8fdb\u5165\u5230MYSQL\u4e2d\u4e86\uff0cMYSQL\u7684\u63d0\u793a\u7b26\u662f\uff1a mysql&gt;<\/p>\n<p>2\u3001\u8fde\u63a5\u5230\u8fdc\u7a0b\u4e3b\u673a\u4e0a\u7684MYSQL\u3002\u5047\u8bbe\u8fdc\u7a0b\u4e3b\u673a\u7684IP\u4e3a\uff1a110.110.110.110\uff0c\u7528\u6237\u540d\u4e3aroot,\u5bc6\u7801\u4e3aabcd123\u3002\u5219\u952e\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>mysql -h110.110.110.110 -u root -p 123;\uff08\u6ce8:u\u4e0eroot\u4e4b\u95f4\u53ef\u4ee5\u4e0d\u7528\u52a0\u7a7a\u683c\uff0c\u5176\u5b83\u4e5f\u4e00\u6837\uff09<\/p>\n<p>3\u3001\u9000\u51faMYSQL\u547d\u4ee4\uff1a exit \uff08\u56de\u8f66\uff09<\/p>\n<p>4\uff1a\u8fd4\u56de\u4e0a\u4e00\u7ea7\uff1aquit(\u56de\u8f66)<\/p>\n<p>\u4e8c\u3001\u4fee\u6539\u5bc6\u7801\u3002<\/p>\n<p>\u683c\u5f0f\uff1amysqladmin -u\u7528\u6237\u540d -p\u65e7\u5bc6\u7801 password \u65b0\u5bc6\u7801<\/p>\n<p>1\u3001\u7ed9root\u52a0\u4e2a\u5bc6\u7801ab12\u3002\u9996\u5148\u5728DOS\u4e0b\u8fdb\u5165\u76ee\u5f55mysql\\bin\uff0c\u7136\u540e\u952e\u5165\u4ee5\u4e0b\u547d\u4ee4<\/p>\n<p>mysqladmin -u root -password ab12<\/p>\n<p>\u6ce8\uff1a\u56e0\u4e3a\u5f00\u59cb\u65f6root\u6ca1\u6709\u5bc6\u7801\uff0c\u6240\u4ee5-p\u65e7\u5bc6\u7801\u4e00\u9879\u5c31\u53ef\u4ee5\u7701\u7565\u4e86\u3002<\/p>\n<p>2\u3001\u518d\u5c06root\u7684\u5bc6\u7801\u6539\u4e3adjg345\u3002<\/p>\n<p>mysqladmin -u root -p ab12 password djg345<\/p>\n<p>\u4e09\u3001\u589e\u52a0\u65b0\u7528\u6237\u3002 \uff08\u6ce8\u610f\uff1a\u548c\u4e0a\u9762\u4e0d\u540c\uff0c\u4e0b\u9762\u7684\u56e0\u4e3a\u662fMYSQL\u73af\u5883\u4e2d\u7684\u547d\u4ee4\uff0c\u6240\u4ee5\u540e\u9762\u90fd\u5e26\u4e00\u4e2a\u5206\u53f7\u4f5c\u4e3a\u547d\u4ee4\u7ed3\u675f\u7b26\uff09<\/p>\n<p>\u683c\u5f0f\uff1agrant select on \u6570\u636e\u5e93.* to \u7528\u6237\u540d@\u767b\u5f55\u4e3b\u673a identified by \"\u5bc6\u7801\"<\/p>\n<p>1\u3001\u589e\u52a0\u4e00\u4e2a\u7528\u6237test1\u5bc6\u7801\u4e3aabc\uff0c\u8ba9\u4ed6\u53ef\u4ee5\u5728\u4efb\u4f55\u4e3b\u673a\u4e0a\u767b\u5f55\uff0c\u5e76\u5bf9\u6240\u6709\u6570\u636e\u5e93\u6709\u67e5\u8be2\u3001\u63d2\u5165\u3001\u4fee\u6539\u3001\u5220\u9664\u7684\u6743\u9650\u3002\u9996\u5148\u7528root\u7528\u6237\u8fde\u5165MYSQL\uff0c\u7136\u540e\u952e\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>grant select,insert,update,delete on *.* to\u00a0test1@\"%\" Identified by \"abc\";<\/p>\n<p>\u4f46\u589e\u52a0\u7684\u7528\u6237\u662f\u5341\u5206\u5371\u9669\u7684\uff0c\u4f60\u60f3\u5982\u67d0\u4e2a\u4eba\u77e5\u9053test1\u7684\u5bc6\u7801\uff0c\u90a3\u4e48\u4ed6\u5c31\u53ef\u4ee5\u5728internet\u4e0a\u7684\u4efb\u4f55\u4e00\u53f0\u7535\u8111\u4e0a\u767b\u5f55\u4f60\u7684mysql\u6570\u636e\u5e93\u5e76\u5bf9\u4f60\u7684\u6570\u636e\u53ef\u4ee5\u4e3a\u6240\u6b32\u4e3a\u4e86\uff0c\u89e3\u51b3\u529e\u6cd5\u89c12\u3002<\/p>\n<p>2\u3001\u589e\u52a0\u4e00\u4e2a\u7528\u6237test2\u5bc6\u7801\u4e3aabc,\u8ba9\u4ed6\u53ea\u53ef\u4ee5\u5728localhost\u4e0a\u767b\u5f55\uff0c\u5e76\u53ef\u4ee5\u5bf9\u6570\u636e\u5e93mydb\u8fdb\u884c\u67e5\u8be2\u3001\u63d2\u5165\u3001\u4fee\u6539\u3001\u5220\u9664\u7684\u64cd\u4f5c\uff08localhost\u6307\u672c\u5730\u4e3b\u673a\uff0c\u5373MYSQL\u6570\u636e\u5e93\u6240\u5728\u7684\u90a3\u53f0\u4e3b\u673a\uff09\uff0c<\/p>\n<p>\u8fd9\u6837\u7528\u6237\u5373\u4f7f\u7528\u77e5\u9053test2\u7684\u5bc6\u7801\uff0c\u4ed6\u4e5f\u65e0\u6cd5\u4eceinternet\u4e0a\u76f4\u63a5\u8bbf\u95ee\u6570\u636e\u5e93\uff0c\u53ea\u80fd\u901a\u8fc7MYSQL\u4e3b\u673a\u4e0a\u7684web\u9875\u6765\u8bbf\u95ee\u4e86\u3002<\/p>\n<p>grant select,insert,update,delete on mydb.* to\u00a0test2@localhost\u00a0identified by \"abc\";<\/p>\n<p>\u5982\u679c\u4f60\u4e0d\u60f3test2\u6709\u5bc6\u7801\uff0c\u53ef\u4ee5\u518d\u6253\u4e00\u4e2a\u547d\u4ee4\u5c06\u5bc6\u7801\u6d88\u6389\u3002<\/p>\n<p>grant select,insert,update,delete on mydb.* to\u00a0test2@localhost\u00a0identified by \"\";<\/p>\n<p>\u4e0b\u7bc7\u6211\u662fMYSQL\u4e2d\u6709\u5173\u6570\u636e\u5e93\u65b9\u9762\u7684\u64cd\u4f5c\u3002\u6ce8\u610f\uff1a\u4f60\u5fc5\u987b\u9996\u5148\u767b\u5f55\u5230MYSQL\u4e2d\uff0c\u4ee5\u4e0b\u64cd\u4f5c\u90fd\u662f\u5728MYSQL\u7684\u63d0\u793a\u7b26\u4e0b\u8fdb\u884c\u7684\uff0c\u800c\u4e14\u6bcf\u4e2a\u547d\u4ee4\u4ee5\u5206\u53f7\u7ed3\u675f\u3002<\/p>\n<p>\u4e00\u3001\u64cd\u4f5c\u6280\u5de7<\/p>\n<p>1\u3001\u5982\u679c\u4f60\u6253\u547d\u4ee4\u65f6\uff0c\u56de\u8f66\u540e\u53d1\u73b0\u5fd8\u8bb0\u52a0\u5206\u53f7\uff0c\u4f60\u65e0\u987b\u91cd\u6253\u4e00\u904d\u547d\u4ee4\uff0c\u53ea\u8981\u6253\u4e2a\u5206\u53f7\u56de\u8f66\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u4e5f\u5c31\u662f\u8bf4\u4f60\u53ef\u4ee5\u628a\u4e00\u4e2a\u5b8c\u6574\u7684\u547d\u4ee4\u5206\u6210\u51e0\u884c\u6765\u6253\uff0c\u5b8c\u540e\u7528\u5206\u53f7\u4f5c\u7ed3\u675f\u6807\u5fd7\u5c31OK\u3002<\/p>\n<p>2\u3001\u4f60\u53ef\u4ee5\u4f7f\u7528\u5149\u6807\u4e0a\u4e0b\u952e\u8c03\u51fa\u4ee5\u524d\u7684\u547d\u4ee4\u3002<\/p>\n<p>\u4e8c\u3001\u663e\u793a\u547d\u4ee4<\/p>\n<p>1\u3001\u663e\u793a\u5f53\u524d\u6570\u636e\u5e93\u670d\u52a1\u5668\u4e2d\u7684\u6570\u636e\u5e93\u5217\u8868\uff1a<\/p>\n<p>mysql&gt; SHOW DATABASES;<\/p>\n<p>\u6ce8\u610f\uff1amysql\u5e93\u91cc\u9762\u6709MYSQL\u7684\u7cfb\u7edf\u4fe1\u606f\uff0c\u6211\u4eec\u6539\u5bc6\u7801\u548c\u65b0\u589e\u7528\u6237\uff0c\u5b9e\u9645\u4e0a\u5c31\u662f\u7528\u8fd9\u4e2a\u5e93\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<p>2\u3001\u663e\u793a\u6570\u636e\u5e93\u4e2d\u7684\u6570\u636e\u8868\uff1a<\/p>\n<p>mysql&gt; USE \u5e93\u540d\uff1b mysql&gt; SHOW TABLES;<\/p>\n<p>3\u3001\u663e\u793a\u6570\u636e\u8868\u7684\u7ed3\u6784\uff1a<\/p>\n<p>mysql&gt; DESCRIBE \u8868\u540d;<\/p>\n<p>4\u3001\u5efa\u7acb\u6570\u636e\u5e93\uff1a<\/p>\n<p>mysql&gt; CREATE DATABASE \u5e93\u540d;<\/p>\n<p>5\u3001\u5efa\u7acb\u6570\u636e\u8868\uff1a<\/p>\n<p>mysql&gt; USE \u5e93\u540d; mysql&gt; CREATE TABLE \u8868\u540d (\u5b57\u6bb5\u540d VARCHAR(20), \u5b57\u6bb5\u540d CHAR(1));<\/p>\n<p>6\u3001\u5220\u9664\u6570\u636e\u5e93\uff1a<\/p>\n<p>mysql&gt; DROP DATABASE \u5e93\u540d;<\/p>\n<p>7\u3001\u5220\u9664\u6570\u636e\u8868\uff1a<\/p>\n<p>mysql&gt; DROP TABLE \u8868\u540d\uff1b<\/p>\n<p>8\u3001\u5c06\u8868\u4e2d\u8bb0\u5f55\u6e05\u7a7a\uff1a<\/p>\n<p>mysql&gt; DELETE FROM \u8868\u540d;<\/p>\n<p>9\u3001\u663e\u793a\u8868\u4e2d\u7684\u8bb0\u5f55\uff1a<\/p>\n<p>mysql&gt; SELECT * FROM \u8868\u540d;<\/p>\n<p>10\u3001\u5f80\u8868\u4e2d\u63d2\u5165\u8bb0\u5f55\uff1a<\/p>\n<p>mysql&gt; INSERT INTO \u8868\u540d VALUES (\"hyq\",\"M\");<\/p>\n<p>11\u3001\u66f4\u65b0\u8868\u4e2d\u6570\u636e\uff1a<\/p>\n<p>mysql-&gt; UPDATE \u8868\u540d SET \u5b57\u6bb5\u540d1='a',\u5b57\u6bb5\u540d2='b' WHERE \u5b57\u6bb5\u540d3='c';<\/p>\n<p>12\u3001\u7528\u6587\u672c\u65b9\u5f0f\u5c06\u6570\u636e\u88c5\u5165\u6570\u636e\u8868\u4e2d\uff1a<\/p>\n<p>mysql&gt; LOAD DATA LOCAL INFILE \"D:\/mysql.txt\" INTO TABLE \u8868\u540d;<\/p>\n<p>13\u3001\u5bfc\u5165.sql\u6587\u4ef6\u547d\u4ee4\uff1a \u00a0 mysql&gt; USE \u6570\u636e\u5e93\u540d; mysql&gt; SOURCE d:\/mysql.sql;<\/p>\n<p>14\u3001\u547d\u4ee4\u884c\u4fee\u6539root\u5bc6\u7801\uff1a<\/p>\n<p>mysql&gt; UPDATE mysql.user SET password=PASSWORD('\u65b0\u5bc6\u7801') WHERE User='root'; mysql&gt; FLUSH PRIVILEGES; \u6ce8\u610f\u7528\u6b64\u79cd\u65b9\u6cd5\u4fee\u6539\u5bc6\u7801\u65f6\u522b\u5fd8\u4e86 password=password('\u65b0\u5bc6\u7801') \u5982\u679c\u76f4\u63a5\u7528 password='\u65b0\u5bc6\u7801'\uff0c\u4e0b\u6b21\u767b\u5f55\u65f6\u4f1a\u51fa\u73b0\u95ee\u9898\u4ee5\u81f3\u4e8e\u767b\u5f55\u4e0d\u8fdb\u53bb\uff0c\u56e0\u4e3a\u6b64\u5bc6\u7801\u6ca1\u7528\u7ecf\u8fc7password()\u51fd\u6570\u5904\u7406\uff0c\u8fd9\u6837\u5199\u5165\u5230user\u8868\u4e2d\u7684\u5bc6\u7801\u7cfb\u7edf\u4e0d\u80fd\u8bc6\u522b\u5c31\u4f1a\u663e\u793a\u7528\u6237\u540d\u548c\u5bc6\u7801\u9519\u8bef\u7684\u4fe1\u606f\u3002 \u5982\u679c\u5728\u4fee\u6539\u5bc6\u7801\u7684\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u95ee\u9898\u4ee5\u81f3\u4e8e\u6ca1\u6709\u4e00\u4e2a\u7528\u6237\u53ef\u4ee5\u8fdb\u5165mysql\u5219\u53ef\u4ee5\u7528\u4ee5\u4e0b\u7684\u65b9\u6cd5\u91cd\u65b0\u4fee\u6539\u7528\u6237\u540d\u548c\u5bc6\u7801\uff1a bin&gt;mysqld --skip-grant-tables;\u7136\u540e\u518d\u5728 \u53e6\u5916\u4e00\u4e2abin&gt;mysql \u4fbf\u53ef\u76f4\u63a5\u8fdb\u5165mysql ,\u8fdb\u5165\u540e\u4fbf\u4fee\u6539\u76f8\u5173\u6570\u636e\u3002<\/p>\n<p>15\u3001\u663e\u793ause\u7684\u6570\u636e\u5e93\u540d\uff1a<\/p>\n<p>mysql&gt; SELECT DATABASE();<\/p>\n<p>16\u3001\u663e\u793a\u5f53\u524d\u7684user\uff1a<\/p>\n<p>mysql&gt; SELECT USER();<\/p>\n<p>\u4e09\u3001\u4e00\u4e2a\u5efa\u5e93\u548c\u5efa\u8868\u4ee5\u53ca\u63d2\u5165\u6570\u636e\u7684\u5b9e\u4f8b<\/p>\n<p>drop database if exists school; \/\/\u5982\u679c\u5b58\u5728SCHOOL\u5219\u5220\u9664<\/p>\n<p>create database school; \/\/\u5efa\u7acb\u5e93SCHOOL<\/p>\n<p>use school; \/\/\u6253\u5f00\u5e93SCHOOL<\/p>\n<p>create table teacher \/\/\u5efa\u7acb\u8868TEACHER ( id int(3) auto_increment not null primary key, name char(10) not null, address varchar(50) default '\u6df1\u5733', year date ); \/\/\u5efa\u8868\u7ed3\u675f<\/p>\n<p>\/\/\u4ee5\u4e0b\u4e3a\u63d2\u5165\u5b57\u6bb5 insert into teacher values('','allen','\u7b11\u4e86\u4e00\u4e2d','1976-10-10'); insert into teacher values('','jack','\u5c0f\u8138\u4e8c\u4e2d','1975-12-23');<\/p>\n<p>\u5982\u679c\u4f60\u5728mysql\u63d0\u793a\u7b26\u952e\u5165\u4e0a\u9762\u7684\u547d\u4ee4\u4e5f\u53ef\u4ee5\uff0c\u4f46\u4e0d\u65b9\u4fbf\u8c03\u8bd5\u3002<\/p>\n<p>\uff081\uff09\u4f60\u53ef\u4ee5\u5c06\u4ee5\u4e0a\u547d\u4ee4\u539f\u6837\u5199\u5165\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\u4e2d\uff0c\u5047\u8bbe\u4e3aschool.sql\uff0c\u7136\u540e\u590d\u5236\u5230c:\\\\\u4e0b\uff0c\u5e76\u5728DOS\u72b6\u6001\u8fdb\u5165\u76ee\u5f55<a>\\\\mysql\\\\bin<\/a>\uff0c\u7136\u540e\u952e\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>mysql -uroot -p\u5bc6\u7801 &lt; c:\\\\school.sql<\/p>\n<p>\u5982\u679c\u6210\u529f\uff0c\u7a7a\u51fa\u4e00\u884c\u65e0\u4efb\u4f55\u663e\u793a\uff1b\u5982\u6709\u9519\u8bef\uff0c\u4f1a\u6709\u63d0\u793a\u3002\uff08\u4ee5\u4e0a\u547d\u4ee4\u5df2\u7ecf\u8c03\u8bd5\uff0c\u4f60\u53ea\u8981\u5c06\/\/\u7684\u6ce8\u91ca\u53bb\u6389\u5373\u53ef\u4f7f\u7528\uff09\u3002<\/p>\n<p>\uff082\uff09\u6216\u8005\u8fdb\u5165\u547d\u4ee4\u884c\u540e\u4f7f\u7528 mysql&gt; source c:\\\\school.sql; \u4e5f\u53ef\u4ee5\u5c06school.sql\u6587\u4ef6\u5bfc\u5165\u6570\u636e\u5e93\u4e2d\u3002<\/p>\n<p>\u56db\u3001\u5c06\u6587\u672c\u6570\u636e\u8f6c\u5230\u6570\u636e\u5e93\u4e2d<\/p>\n<p>1\u3001\u6587\u672c\u6570\u636e\u5e94\u7b26\u5408\u7684\u683c\u5f0f\uff1a\u5b57\u6bb5\u6570\u636e\u4e4b\u95f4\u7528tab\u952e\u9694\u5f00\uff0cnull\u503c\u7528<a>\\\\n<\/a>\u6765\u4ee3\u66ff.\u4f8b\uff1a<\/p>\n<p>3 rose \u5c0f\u8138\u4e8c\u4e2d 1976-10-10<\/p>\n<p>4 mike \u5c0f\u8138\u4e00\u4e2d 1975-12-23<\/p>\n<p>\u5047\u8bbe\u4f60\u628a\u8fd9\u4e24\u7ec4\u6570\u636e\u5b58\u4e3aschool.txt\u6587\u4ef6\uff0c\u653e\u5728c\u76d8\u6839\u76ee\u5f55\u4e0b\u3002<\/p>\n<p>2\u3001\u6570\u636e\u4f20\u5165\u547d\u4ee4 load data local infile \"c:\\\\school.txt\" into table \u8868\u540d;<\/p>\n<p>\u6ce8\u610f\uff1a\u4f60\u6700\u597d\u5c06\u6587\u4ef6\u590d\u5236\u5230<a>\\\\mysql\\\\bin<\/a>\u76ee\u5f55\u4e0b\uff0c\u5e76\u4e14\u8981\u5148\u7528use\u547d\u4ee4\u6253\u8868\u6240\u5728\u7684\u5e93\u3002<\/p>\n<p>\u4e94\u3001\u5907\u4efd\u6570\u636e\u5e93\uff1a\uff08\u547d\u4ee4\u5728DOS\u7684<a>\\\\mysql\\\\bin<\/a>\u76ee\u5f55\u4e0b\u6267\u884c\uff09<\/p>\n<p>1.\u5bfc\u51fa\u6574\u4e2a\u6570\u636e\u5e93<\/p>\n<p>\u5bfc\u51fa\u6587\u4ef6\u9ed8\u8ba4\u662f\u5b58\u5728mysql\\bin\u76ee\u5f55\u4e0b<\/p>\n<p>mysqldump -u \u7528\u6237\u540d -p \u6570\u636e\u5e93\u540d &gt; \u5bfc\u51fa\u7684\u6587\u4ef6\u540d<\/p>\n<p>mysqldump -u user_name -p123456 database_name &gt; outfile_name.sql<\/p>\n<p>2.\u5bfc\u51fa\u4e00\u4e2a\u8868<\/p>\n<p>mysqldump -u \u7528\u6237\u540d -p \u6570\u636e\u5e93\u540d \u8868\u540d&gt; \u5bfc\u51fa\u7684\u6587\u4ef6\u540d<\/p>\n<p>mysqldump -u user_name -p database_name table_name &gt; outfile_name.sql<\/p>\n<p>3.\u5bfc\u51fa\u4e00\u4e2a\u6570\u636e\u5e93\u7ed3\u6784<\/p>\n<p>mysqldump -u user_name -p -d --add-drop-table database_name &gt; outfile_name.sql<\/p>\n<p>-d \u6ca1\u6709\u6570\u636e --add-drop-table \u5728\u6bcf\u4e2acreate\u8bed\u53e5\u4e4b\u524d\u589e\u52a0\u4e00\u4e2adrop table<\/p>\n<p>4.\u5e26\u8bed\u8a00\u53c2\u6570\u5bfc\u51fa<\/p>\n<p>mysqldump -uroot -p --default-character-set=latin1 --set-charset=gbk --skip-opt database_name &gt; outfile_name.sql<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u8fde\u63a5MYSQL\u3002 \u683c\u5f0f\uff1a mysql -h\u4e3b\u673a\u5730\u5740 -u\u7528\u6237\u540d \uff0dp\u7528\u6237\u5bc6\u7801 1\u3001\u8fde\u63a5\u5230\u672c\u673a\u4e0a\u7684MYSQL [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,1],"tags":[167,382,169],"class_list":["post-827","post","type-post","status-publish","format-standard","hentry","category-wordpress","category-net-security","tag-mysql"],"_links":{"self":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=827"}],"version-history":[{"count":0,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/827\/revisions"}],"wp:attachment":[{"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}