﻿{"id":92,"date":"2023-09-18T12:36:33","date_gmt":"2023-09-18T04:36:33","guid":{"rendered":"http:\/\/blog.yiyilearning.com\/?p=92"},"modified":"2023-09-18T12:37:50","modified_gmt":"2023-09-18T04:37:50","slug":"mysqlmariadb%e8%ae%be%e7%bd%ae%e8%bf%9c%e7%a8%8b%e8%ae%bf%e9%97%ae","status":"publish","type":"post","link":"https:\/\/airlive.online\/index.php\/2023\/09\/18\/mysqlmariadb%e8%ae%be%e7%bd%ae%e8%bf%9c%e7%a8%8b%e8%ae%bf%e9%97%ae\/","title":{"rendered":"MySQL&#038;MariaDB\u8bbe\u7f6e\u8fdc\u7a0b\u8bbf\u95ee"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">grant all privileges on <em>.<\/em> to &#8216;root&#8217;@&#8217;%&#8217; identified by &#8216;19940722Fyy&#8217; with grant option;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> flush privileges;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Last login: Wed Sep 13 16:09:49 2023 from 127.0.0.1<br>[root@ecm-24d4 ~]# mysql -uroot -p<br>Enter password:<br>Welcome to the MySQL monitor. Commands end with ; or \\g.<br>Your MySQL connection id is 4<br>Server version: 5.7.40-log Source distribution<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Copyright (c) 2000, 2022, Oracle and\/or its affiliates.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Oracle is a registered trademark of Oracle Corporation and\/or its<br>affiliates. Other names may be trademarks of their respective<br>owners.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Type &#8216;help;&#8217; or &#8216;\\h&#8217; for help. Type &#8216;\\c&#8217; to clear the current input statement.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">mysql> GRANT ALL PRIVILEGES ON <em>.<\/em> TO &#8216;root&#8217;@&#8217;%&#8217; IDENTIFIED BY &#8216;19940722Fyy&#8217; WITH GRANT OPTION;<br>Query OK, 0 rows affected, 1 warning (0.01 sec)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">mysql&gt;<br>mysql&gt; FLUSH PRIVILEGES;<br>Query OK, 0 rows affected (0.00 sec)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">mysql&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>grant all privileges on . to &#8216;root&#8217;@&#8217;%&#8217; identified by &#8216;19940722Fyy&#8217; with grant option; flush privileges; Last login: Wed Sep 13 16:09:49 2023 from 127.0.0.1[root@ecm-24d4 ~]# mysql -uroot -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \\g.Your MySQL connection id is 4Server version: 5.7.40-log Source distribution Copyright (c) 2000, 2022, Oracle and\/or its [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-92","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/comments?post=92"}],"version-history":[{"count":3,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/posts\/92\/revisions"}],"predecessor-version":[{"id":96,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/posts\/92\/revisions\/96"}],"wp:attachment":[{"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/media?parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/categories?post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/tags?post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}