{"id":1310,"date":"2022-09-15T11:57:21","date_gmt":"2022-09-15T03:57:21","guid":{"rendered":"http:\/\/175.24.184.226\/?p=1310"},"modified":"2022-09-15T11:57:21","modified_gmt":"2022-09-15T03:57:21","slug":"xampp-mysql%e5%af%86%e7%a0%81%e5%bf%98%e8%ae%b0_xampp%e9%87%8d%e7%bd%aemysql%e5%af%86%e7%a0%81_weixin_39634052%e7%9a%84%e5%8d%9a%e5%ae%a2","status":"publish","type":"post","link":"\/?p=1310","title":{"rendered":"xampp mysql\u5bc6\u7801\u5fd8\u8bb0_XAMPP\u91cd\u7f6eMySQL\u5bc6\u7801_weixin_39634052\u7684\u535a\u5ba2"},"content":{"rendered":"<p>\u627e\u5230XAMPP\u7684\u5b89\u88c5\u4f4d\u7f6e\uff0c\u8fd9\u91cc\u4ee5\u6211\u7684\u4e3a\u4f8b\uff1aC:\\xampp<\/p>\n<p>\u90a3\u4e48MySQL\u7684\u8def\u5f84\uff1aC:\\xampp\\mysql<\/p>\n<p>phpMyAdmin\u7684\u8def\u5f84\uff1aC:\\xampp\\phpMyAdmin<\/p>\n<p>\u4fee\u6539MySQL\u5bc6\u7801<\/p>\n<p>\u7b2c\u4e00\u6b65\uff1a<\/p>\n<p>\u901a\u8fc7XAMPP\u63a7\u5236\u9762\u677f(XAMPP Control Panel)\u5173\u95edMySQL\u670d\u52a1(stop)\u3002<\/p>\n<p>\u7b2c\u4e8c\u6b65:<\/p>\n<p>\u6253\u5f00\u547d\u4ee4\u884c\u7ec8\u7aef\uff0c\u5207\u6362\u5230\u76ee\u5f55\uff1aC:\\xampp\\mysql\\bin<\/p>\n<p>C:\\Windows\\System32&gt;cd C:\\xampp\\mysql\\bin<\/p>\n<p>C:\\xampp\\mysql\\bin&gt;mysqld --skip-grant-tables2018-03-28 11:09:05 4200 [Note] mysqld (mysqld 10.1.19-MariaDB) starting as process 5716 ...<\/p>\n<p><img src=\"https:\/\/img-blog.csdnimg.cn\/img_convert\/c80a2d8e97a43ce7444d4eb8b0809023.png\" alt=\"c80a2d8e97a43ce7444d4eb8b0809023.png\" \/><\/p>\n<p>\u8f93\u5165\u547d\u4ee4\u540e\uff0c\u7a97\u53e3\u4f1a\u8fdb\u5165\u65e0\u6cd5\u64cd\u4f5c\u7684\u72b6\u6001\uff0c\u6b64\u65f6MySQL\u4e5f\u4f1a\u542f\u52a8\uff0c\u4fdd\u6301\u547d\u4ee4\u884c\u7ec8\u7aef\u7a97\u53e3\u7684\u72b6\u6001\uff0c\u4e0d\u8981\u5173\u95ed\u3002<\/p>\n<p>\u7b2c\u4e09\u6b65:<\/p>\n<p>\u6253\u5f00\u53e6\u4e00\u4e2a\u547d\u4ee4\u884c\u7ec8\u7aef\uff0c\u540c\u6837\u5207\u6362\u5230\u76ee\u5f55\uff1aC:\\xampp\\mysql\\bin<\/p>\n<p>\u4f9d\u6b21\u8f93\u5165\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<p>C:\\xampp\\mysql\\bin&gt;mysql.exe -u root\u3000\u3000\u3000\u3000\u3000# \u4ee5root\u7528\u6237\u767b\u9646<\/p>\n<p>Welcome to the MariaDB monitor. Commands end with ; or \\g.<\/p>\n<p>Your MariaDB connectionid is 2Server version:10.1.19-MariaDB mariadb.org binary distribution<\/p>\n<p>Copyright (c)2000, 2016, Oracle, MariaDB Corporation Ab and others.<\/p>\n<p>Type'help;' or '\\h' for help. Type '\\c' to clearthe current input statement.<\/p>\n<p>MariaDB [(none)]&gt;use mysql\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000# \u4f7f\u7528mysql\u6570\u636e\u5e93<\/p>\n<p>Database changed<\/p>\n<p>MariaDB [mysql]&gt; update user set password=PASSWORD('root') where user='root';\u3000\u3000\u3000\u3000\u3000\u3000\u3000# \u66f4\u6539\u5bc6\u7801<\/p>\n<p>Query OK,0 rows affected, 3 warnings (0.00sec)<\/p>\n<p>Rows matched:3 Changed: 0 Warnings: 3MariaDB [mysql]&gt;flush privileges;\u3000\u3000\u3000\u3000\u3000\u3000# \u5237\u65b0\u6743\u9650<\/p>\n<p>Query OK,0 rows affected, 12 warnings (0.02 sec)<\/p>\n<p>\u8fd9\u6837\u6211\u4eec\u5c31\u6210\u529f\u7684\u4fee\u6539\u4e86MySQL\u7684\u5bc6\u7801\uff0c\u8fd9\u91cc\u8bbe\u7f6e\u4e3aroot\uff0c\u4f46\u662f\u6211\u4eec\u8fd8\u9700\u8981\u4fee\u6539phpMyAdmin\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u6570\u636e\u5e93\u8fde\u63a5\u5bc6\u7801\uff0c\u4fdd\u8bc1\u80fd\u6b63\u5e38\u8fde\u63a5\u6570\u636e\u5e93\u3002<\/p>\n<p>\u4fee\u6539phpMyAdmin\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>\u4fee\u6539C:\\xampp\\phpMyAdmin\\config.inc.php\u4e2d\u7684\u4e3a\u4f60\u60f3\u8bbe\u7f6e\u7684\u5bc6\u7801\u3002<\/p>\n<p>$cfg['Servers'][$i]['password'] = 'root';<\/p>\n<p>\u91cd\u542fMySQL\u670d\u52a1\uff0c\u4fbf\u80fd\u4f7f\u7528\u65b0\u8bbe\u7f6e\u7684\u5bc6\u7801\u4f7f\u7528\u4e86\u3002<\/p>\n<p>\u672c\u6587\u8f6c\u81ea <a href=\"https:\/\/blog.csdn.net\/weixin_39634052\/article\/details\/113157410\">https:\/\/blog.csdn.net\/weixin_39634052\/article\/details\/113157410<\/a>\uff0c\u5982\u6709\u4fb5\u6743\uff0c\u8bf7\u8054\u7cfb\u5220\u9664\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u627e\u5230XAMPP\u7684\u5b89\u88c5\u4f4d\u7f6e\uff0c\u8fd9\u91cc\u4ee5\u6211\u7684\u4e3a\u4f8b\uff1aC:\\xampp \u90a3\u4e48MySQL\u7684\u8def\u5f84\uff1aC:\\xampp\\mysql phpMyAdmin\u7684\u8def   \u2026 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[22],"tags":[],"_links":{"self":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts\/1310"}],"collection":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1310"}],"version-history":[{"count":1,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/1310\/revisions"}],"predecessor-version":[{"id":1311,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/1310\/revisions\/1311"}],"wp:attachment":[{"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1310"},{"taxonomy":"post_tag","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}