{"id":47393,"date":"2025-07-30T07:36:54","date_gmt":"2025-07-29T23:36:54","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/47393.html"},"modified":"2025-07-30T07:36:54","modified_gmt":"2025-07-29T23:36:54","slug":"%e5%9c%a8%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88ecs%ef%bc%89%e9%83%a8%e7%bd%b2-mysql-%e6%93%8d%e4%bd%9c%e6%b5%81%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/47393.html","title":{"rendered":"\u5728\u670d\u52a1\u5668\uff08ECS\uff09\u90e8\u7f72 MySQL \u64cd\u4f5c\u6d41\u7a0b"},"content":{"rendered":"<p> \u5728\u90e8\u7f72 MySQL \u6570\u636e\u5e93\u4e4b\u524d\u9700\u8981\u51c6\u5907\u597d\u670d\u52a1\u5668\u73af\u5883\u3002<\/p>\n<p> \u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4e24\u79cd\u65b9\u5f0f\u6765\u51c6\u5907\u90e8\u7f72\u670d\u52a1\u5668&#xff1a;<\/p>\n<ul style=\"margin-left:0;margin-right:0\">\n<li style=\"text-align:left\">\u4e91\u670d\u52a1\u5668&#xff08;ECS&#xff09;&#xff0c;\u5982&#xff1a;\u963f\u91cc\u4e91\u3001\u534e\u4e3a\u4e91\u3001\u817e\u8baf\u4e91\u7b49\u3002<\/li>\n<li style=\"text-align:left\">IDC\u670d\u52a1\u5668\u3002<\/li>\n<\/ul>\n<p>  \u73b0\u4ee5\u963f\u91cc\u4e91\u670d\u52a1\u5668&#xff08;ECS&#xff09;Windows\u7248\u672c\u6765\u8fdb\u884c\u90e8\u7f72\u8bf4\u660e\u3002<\/p>\n<p style=\"text-align:left\">1. \u8fdc\u7a0b\u767b\u5f55 Windows \u670d\u52a1\u5668&#xff0c;\u5b89\u88c5\u597d MySQL \u6570\u636e\u5e93\u670d\u52a1\u3002<\/p>\n<p style=\"text-align:left\">\u00a0 \u00a0 \u00a0My SQL Server \u4e0b\u8f7d&#xff1a;MySQL :: Download MySQL Community Server<\/p>\n<p style=\"text-align:left\">\n<p style=\"text-align:left\">2. \u5b89\u88c5\u597d\u540e&#xff0c;\u8fdb\u5165\u5230 MySQL \u5b89\u88c5\u76ee\u5f55\u4e0b bin \u6587\u4ef6\u5939&#xff08;\u5982&#xff1a;C:\\\\Program Files\\\\MySQL\\\\MySQL Server 8.0\\\\bin&#xff09;&#xff0c;\u8f93\u5165\u4ee5\u4e0b \u547d\u4ee4\u6765\u6d4b\u8bd5\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p>  mysql -h localhost -u root -p123456<br \/>\n# -h&#xff1a;\u8868\u793a\u540e\u8ddf MySQL \u670d\u52a1\u5668\u540d<br \/>\n# -u&#xff1a;\u8868\u793a\u540e\u8ddf MySQL \u767b\u5f55\u7528\u6237\u540d<br \/>\n# -p&#xff1a;\u8868\u793a\u540e\u8ddf MySQL \u767b\u5f55\u5bc6\u7801<br \/>\n# \u6ce8&#xff1a;-h\u548c-u\u53c2\u6570\u540e\u9762\u53ef\u4ee5\u6709\u7a7a\u683c\u6216\u6ca1\u6709\u7a7a\u683c\u90fd\u53ef\u4ee5&#xff1b;-p\u53c2\u6570\u4e0e\u5bc6\u7801\u503c\u4e4b\u95f4\u5219\u4e0d\u80fd\u6709\u7a7a\u683c&#xff0c;\u5426\u5219\u56de\u8f66\u540e\u4f1a\u663e\u793a\u8f93\u5165\u5bc6\u7801\u63d0\u793a\u3002 <\/p>\n<p style=\"text-align:left\">\n<p style=\"text-align:left\">3. My<span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">SQL \u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;\u53ea\u5141\u8bb8 localhost \u8fde\u63a5\u3002\u82e5\u9700\u8981\u5916\u90e8 IP \u8fde\u63a5\u5230 MySQL&#xff0c;\u786e\u4fdd MySQL \u6570\u636e\u5e93\u91cc&#034;user&#034;\u8868\u4e2d\u6709\u4e00\u4e2a\u5141\u8bb8\u4ece\u8fdc\u7a0bIP\u5730\u5740\u8fde\u63a5\u7684\u7528\u6237\u3002<\/span><\/span><\/p>\n<p style=\"text-align:left\"><span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">\u00a0\u00a0\u00a0\u00a0\u5176\u4e2d&#xff0c;\u201cuser\u201d\u8868\u4e2d host \u5217\u8868\u793a\u8be5\u7528\u6237\u53ef\u4ee5\u8bbf\u95ee\u4e3b\u673a\u60c5\u51b5&#xff0c;\u9ed8\u8ba4\u662f localhost&#xff08;\u8868\u793a\u672c\u5730\u8bbf\u95ee&#xff09;\u3002\u82e5\u8981\u5141\u8bb8\u8fdc\u7a0b\u8bbf\u95ee&#xff0c;\u5219\u5c06 host \u503c\u6539\u4e3a\u201c%\u201d\u5373\u53ef\u3002<\/span><\/span><\/p>\n<p>  <span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">\u00a0 \u00a0 \u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4e24\u79cd\u65b9\u5f0f\u6765\u521b\u5efa\u8fdc\u7a0b\u8bbf\u95ee\u7528\u6237&#xff1a;<\/span><\/span><\/p>\n<ul style=\"margin-left:0;margin-right:0\">\n<li style=\"text-align:left\"><span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">\u5bf9\u9884\u8bbe\u7ba1\u7406\u5458\u7528\u6237 root \u6388\u6743\u8fdc\u7a0bIP\u8bbf\u95ee\u6743\u9650\u3002<\/span><\/span><\/li>\n<\/ul>\n<p>  mysql&gt; use mysql;          # use\u547d\u4ee4\u6307\u5b9a\u4f7f\u7528\u7684\u6570\u636e\u5e93\u3002 MySQL\u6570\u636e\u5e93\u7528\u6237\u90fd\u653e\u5728 mysql \u6570\u636e\u5e93\u4e0b\u7684\u201cuser\u201d\u8868\u4e2d\u3002<br \/>\nmysql&gt; select user,host from user;   # \u67e5\u8be2 user \u8868\u4e2d\u5df2\u5b58\u5728\u7684\u7528\u6237\u6570\u636e&#xff0c;\u53ef\u4ee5\u770b\u5230 root \u7528\u6237\u7684 host \u4e3a localhsot<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8211;&#043;<br \/>\n| user             | host      |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8211;&#043;<\/p>\n<p>| mysql.infoschema | localhost |<br \/>\n| mysql.session    | localhost |<br \/>\n| mysql.sys        | localhost |<br \/>\n| root             | localhost |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#043;&#8212;&#8212;&#8212;&#8211;&#043;<br \/>\nmysql&gt; update user set host&#061;&#039;%&#039; where user&#061;&#039;root&#039;;   # \u5c06 root \u7528\u6237\u7684&#034;host&#034;\u503c\u66f4\u65b0\u4e3a&#034;%&#034;<br \/>\nmysql&gt; flush privileges;     # \u5c06\u5f53\u524duser\u548cprivilige\u8868\u4e2d\u7684\u7528\u6237\u4fe1\u606f\/\u6743\u9650\u8bbe\u7f6e\u4ecemysql\u5e93&#xff08;MySQL\u6570\u636e\u5e93\u7684\u5185\u7f6e\u5e93&#xff09;\u4e2d\u63d0\u53d6\u5230\u5185\u5b58\u91cc<br \/>\nmysql&gt; GRANT ALL PRIVILEGES ON *.* TO &#039;root&#039;&#064;&#039;%&#039; IDENTIFIED BY &#039;\u5bc6\u7801&#039; WITH GRANT OPTION;   # \u4e3a root \u7528\u6237\u8fdb\u884c\u6388\u6743&#xff0c;\u4efb\u610f\u4e3b\u673a\u4ee5\u7528\u6237 root \u548c\u5bc6\u7801\u8fde\u63a5\u5230 mysql \u670d\u52a1\u5668<br \/>\nmysql&gt; flush privileges;<\/p>\n<p>#  grant\u8bed\u6cd5&#xff1a; grant \u6743\u9650\u540d&#xff08;\u6240\u6709\u7684\u6743\u9650\u7528all&#xff09; on \u5e93\u540d&#xff08;*\u5168\u90e8&#xff09;.\u8868\u540d&#xff08;*\u5168\u90e8&#xff09; to \u2018\u8981\u6388\u6743\u7684\u7528\u6237\u540d\u2019&#064;\u2019%\u2019&#xff08;%\u8868\u793a\u6240\u6709\u7684IP&#xff0c;\u53ef\u4ee5\u53ea\u662f\u4e00\u4e2aIP&#xff09; identified by \u201c\u5bc6\u7801\u201d&#xff1b; <\/p>\n<ul style=\"margin-left:0;margin-right:0\">\n<li style=\"text-align:left\"><span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">\u521b\u5efa\u5141\u8bb8\u8fdc\u7a0bIP\u8bbf\u95ee\u6743\u9650\u7684\u7528\u6237\u3002<\/span><\/span><\/li>\n<\/ul>\n<p>  mysql&gt; use mysql;<br \/>\nmysql&gt; CREATE USER &#039;user&#039;&#064;&#039;%&#039; IDENTIFIED BY &#039;123456&#039;;<br \/>\nmysql&gt; GRANT ALL PRIVILEGES ON *.* TO &#039;user&#039;&#064;&#039;%&#039; WITH GRANT OPTION;<br \/>\nmysql&gt; FLUSH PRIVILEGES;<\/p>\n<p style=\"text-align:left\"><span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">4. \u5b8c\u6210\u4e0a\u8ff0\u5904\u7406\u540e&#xff0c;\u76ee\u524d\u8fd8\u662f\u4e0d\u80fd\u8fdc\u7a0b\u8bbf\u95ee MySQL \u6570\u636e\u5e93\u3002\u8fd8\u9700\u8981\u5728\u4e91\u670d\u52a1\u5668&#xff08;ECS&#xff09;\u4e0a\u8bbe\u5b9a\u9632\u706b\u5899\u8bbf\u95ee\u89c4\u5219\u3002<\/span><\/span><\/p>\n<p style=\"text-align:left\"><span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">\u6253\u5f00\u963f\u91cc\u4e91\u670d\u52a1\u5668&#xff08;ECS&#xff09;&gt;&gt; \u5b89\u5168\u7ec4 &gt;&gt; \u8bbf\u95ee\u89c4\u5219 \u4e0b\u7684\u201c\u5165\u65b9\u5411\u201d&#xff0c;\u589e\u52a0 MySQL \u7aef\u53e3&#xff08;3306&#xff09;\u5141\u8bb8\u8bbf\u95ee\u7684\u6388\u6743&#xff0c;\u5982\u4e0b\u622a\u56fe&#xff1a;<\/span><\/span><\/p>\n<p style=\"text-align:left\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"370\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729233652-68895b14cd5a8.png\" width=\"2031\" \/><\/p>\n<p style=\"text-align:left\">\n<p style=\"text-align:left\"><span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">5.\u00a0 \u82e5 MySQL \u670d\u52a1\u5668\u5728\u914d\u7f6e\u6587\u4ef6&#xff08;<\/span><\/span><span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">\u901a\u5e38\u662f<\/span><\/span>my.cnf<span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">\u6216<\/span><\/span>my.ini<span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">&#xff09;\u6307\u5b9a\u7279\u6b8aIP\u5730\u5740\u8bbf\u95ee\u8bbe\u5b9a&#xff08;\u5982&#xff1a;<\/span><\/span><span style=\"color:#ff0009\"><span style=\"background-color:#fafafa\">bind-address &#061; 192.168.0.4<\/span><\/span><span style=\"color:#383a42\"><span style=\"background-color:#fafafa\">&#xff09;<\/span><\/span><span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">&#xff0c;\u5982\u4e0b&#xff1a;<\/span><\/span><\/p>\n<p>   [mysqld]<br \/>\n    bind-address &#061; 192.168.0.4<\/p>\n<p>\u00a0 \u00a0\u00a0<span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">\u5219\u9700\u8981\u5c06 <\/span><\/span><span style=\"color:#ffb729\"><span style=\"background-color:#ffffff\">bind-address <\/span><\/span><span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">\u914d\u7f6e\u9879\u66f4\u6539\u4e3a <\/span><\/span><span style=\"color:#ffb729\"><span style=\"background-color:#ffffff\">0.0.0.0<\/span><\/span><span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">&#xff0c;\u5141\u8bb8MySQL\u76d1\u542c\u6240\u6709IP\u5730\u5740\u3002<\/span><\/span><\/p>\n<p>  <span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">\u00a0 \u00a0 \u82e5\u6307\u5b9a\u4e86 <\/span><\/span><br \/>\n  <span style=\"color:#ffb729\"><span style=\"background-color:#ffffff\">bind-address<\/span><\/span><br \/>\n  <span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">&#xff08;\u5982&#xff1a;bind-address &#061; 0.0.0.0&#xff09;&#xff0c;\u672c\u5730\u8fde\u63a5\u6570\u636e\u5e93\u65f6&#xff0c;\u5219\u5fc5\u987b\u6307\u5b9aIP\u5730\u5740\u7684\u5f62\u5f0f\u6765\u8fde\u63a5\u3002<\/span><\/span><\/p>\n<p>  mysql -h 127.0.0.1 -u root -p123456 <\/p>\n<p>\u00a0 \u00a0\u00a0<span style=\"color:#ff0009\"><span style=\"background-color:#ffffff\">\u6ce8&#xff1a;MySQL \u5728\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u662f\u6ca1\u6709\u6307\u5b9a bind-addrerss \u914d\u7f6e\u4fe1\u606f&#xff0c;\u82e5\u6ca1\u6709\u53ef\u4ee5\u5728 [mysqld] \u4e0b\u624b\u52a8\u6dfb\u52a0\u3002<\/span><\/span><\/p>\n<\/p>\n<p><span style=\"color:#4d4d4d\"><span style=\"background-color:#ffffff\">6.\u00a0 \u5b8c\u6210\u4e0a\u8ff0\u8bbe\u5b9a\u540e&#xff0c;\u5728\u5916\u90e8\u53ef\u4ee5\u4f7f\u7528 MySQL \u5ba2\u6237\u7aef\u7ba1\u7406\u5de5\u5177&#xff08;\u5982&#xff1a;Navicat&#xff09;\u901a\u8fc7\u8fdc\u7a0b IP \u5730\u5740\u6765\u8bbf\u95ee MySQL \u6570\u636e\u5e93\u3002 <\/span><\/span><\/p>\n<p>  <img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1177\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729233653-68895b1526712.png\" width=\"995\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb646\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf22\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5728Windows\u670d\u52a1\u5668\u4e0a\u90e8\u7f72MySQL\u6570\u636e\u5e93\u5e76\u8fdb\u884c\u8fdc\u7a0b\u8bbf\u95ee\u914d\u7f6e\u7684\u6b65\u9aa4\u3002\u9996\u5148\u9700\u8981\u5b89\u88c5MySQL\u670d\u52a1\u5e76\u6d4b\u8bd5\u8fde\u63a5\u3002\u4e3a\u5b9e\u73b0\u8fdc\u7a0b\u8bbf\u95ee\uff0c\u9700\u4fee\u6539\u7528\u6237\u6743\u9650\uff0c\u5c06root\u7528\u6237\u6216\u65b0\u5efa\u7528\u6237\u7684host\u503c\u6539\u4e3a&quot;%&quot;\u4ee5\u5141\u8bb8\u4efb\u610fIP\u8fde\u63a5\uff0c\u5e76\u6267\u884c\u6388\u6743\u64cd\u4f5c\u3002\u540c\u65f6\u9700\u8981\u5728\u4e91\u670d\u52a1\u5668\u5b89\u5168\u7ec4\u4e2d\u5f00\u653e3306\u7aef\u53e3\uff0c\u5e76\u68c0\u67e5MySQL\u914d\u7f6e\u6587\u4ef6\u4e2dbind-address\u8bbe\u7f6e\uff08\u5efa\u8bae\u6539\u4e3a0.0.0.0\uff09\u3002\u5b8c\u6210\u8fd9\u4e9b\u914d\u7f6e\u540e\uff0c\u5373\u53ef\u901a\u8fc7Navicat\u7b49\u5ba2\u6237\u7aef\u5de5\u5177\u8fdb\u884c\u8fdc\u7a0b\u8fde\u63a5\u3002<\/p>\n","protected":false},"author":2,"featured_media":47391,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[114,100,43],"topic":[],"class_list":["post-47393","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-mysql","tag-100","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728\u670d\u52a1\u5668\uff08ECS\uff09\u90e8\u7f72 MySQL \u64cd\u4f5c\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/47393.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728\u670d\u52a1\u5668\uff08ECS\uff09\u90e8\u7f72 MySQL \u64cd\u4f5c\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb646\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf22\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5728Windows\u670d\u52a1\u5668\u4e0a\u90e8\u7f72MySQL\u6570\u636e\u5e93\u5e76\u8fdb\u884c\u8fdc\u7a0b\u8bbf\u95ee\u914d\u7f6e\u7684\u6b65\u9aa4\u3002\u9996\u5148\u9700\u8981\u5b89\u88c5MySQL\u670d\u52a1\u5e76\u6d4b\u8bd5\u8fde\u63a5\u3002\u4e3a\u5b9e\u73b0\u8fdc\u7a0b\u8bbf\u95ee\uff0c\u9700\u4fee\u6539\u7528\u6237\u6743\u9650\uff0c\u5c06root\u7528\u6237\u6216\u65b0\u5efa\u7528\u6237\u7684host\u503c\u6539\u4e3a&quot;%&quot;\u4ee5\u5141\u8bb8\u4efb\u610fIP\u8fde\u63a5\uff0c\u5e76\u6267\u884c\u6388\u6743\u64cd\u4f5c\u3002\u540c\u65f6\u9700\u8981\u5728\u4e91\u670d\u52a1\u5668\u5b89\u5168\u7ec4\u4e2d\u5f00\u653e3306\u7aef\u53e3\uff0c\u5e76\u68c0\u67e5MySQL\u914d\u7f6e\u6587\u4ef6\u4e2dbind-address\u8bbe\u7f6e\uff08\u5efa\u8bae\u6539\u4e3a0.0.0.0\uff09\u3002\u5b8c\u6210\u8fd9\u4e9b\u914d\u7f6e\u540e\uff0c\u5373\u53ef\u901a\u8fc7Navicat\u7b49\u5ba2\u6237\u7aef\u5de5\u5177\u8fdb\u884c\u8fdc\u7a0b\u8fde\u63a5\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/47393.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-29T23:36:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729233652-68895b14cd5a8.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/47393.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/47393.html\",\"name\":\"\u5728\u670d\u52a1\u5668\uff08ECS\uff09\u90e8\u7f72 MySQL \u64cd\u4f5c\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-29T23:36:54+00:00\",\"dateModified\":\"2025-07-29T23:36:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/47393.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/47393.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/47393.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728\u670d\u52a1\u5668\uff08ECS\uff09\u90e8\u7f72 MySQL \u64cd\u4f5c\u6d41\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5728\u670d\u52a1\u5668\uff08ECS\uff09\u90e8\u7f72 MySQL \u64cd\u4f5c\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/47393.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5728\u670d\u52a1\u5668\uff08ECS\uff09\u90e8\u7f72 MySQL \u64cd\u4f5c\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb646\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf22\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5728Windows\u670d\u52a1\u5668\u4e0a\u90e8\u7f72MySQL\u6570\u636e\u5e93\u5e76\u8fdb\u884c\u8fdc\u7a0b\u8bbf\u95ee\u914d\u7f6e\u7684\u6b65\u9aa4\u3002\u9996\u5148\u9700\u8981\u5b89\u88c5MySQL\u670d\u52a1\u5e76\u6d4b\u8bd5\u8fde\u63a5\u3002\u4e3a\u5b9e\u73b0\u8fdc\u7a0b\u8bbf\u95ee\uff0c\u9700\u4fee\u6539\u7528\u6237\u6743\u9650\uff0c\u5c06root\u7528\u6237\u6216\u65b0\u5efa\u7528\u6237\u7684host\u503c\u6539\u4e3a&quot;%&quot;\u4ee5\u5141\u8bb8\u4efb\u610fIP\u8fde\u63a5\uff0c\u5e76\u6267\u884c\u6388\u6743\u64cd\u4f5c\u3002\u540c\u65f6\u9700\u8981\u5728\u4e91\u670d\u52a1\u5668\u5b89\u5168\u7ec4\u4e2d\u5f00\u653e3306\u7aef\u53e3\uff0c\u5e76\u68c0\u67e5MySQL\u914d\u7f6e\u6587\u4ef6\u4e2dbind-address\u8bbe\u7f6e\uff08\u5efa\u8bae\u6539\u4e3a0.0.0.0\uff09\u3002\u5b8c\u6210\u8fd9\u4e9b\u914d\u7f6e\u540e\uff0c\u5373\u53ef\u901a\u8fc7Navicat\u7b49\u5ba2\u6237\u7aef\u5de5\u5177\u8fdb\u884c\u8fdc\u7a0b\u8fde\u63a5\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/47393.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-29T23:36:54+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729233652-68895b14cd5a8.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/47393.html","url":"https:\/\/www.wsisp.com\/helps\/47393.html","name":"\u5728\u670d\u52a1\u5668\uff08ECS\uff09\u90e8\u7f72 MySQL \u64cd\u4f5c\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-29T23:36:54+00:00","dateModified":"2025-07-29T23:36:54+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/47393.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/47393.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/47393.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5728\u670d\u52a1\u5668\uff08ECS\uff09\u90e8\u7f72 MySQL \u64cd\u4f5c\u6d41\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/47393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=47393"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/47393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/47391"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=47393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=47393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=47393"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=47393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}