{"id":301,"date":"2019-09-15T15:40:41","date_gmt":"2019-09-15T07:40:41","guid":{"rendered":"https:\/\/freeapp.sbs\/blog\/?p=301"},"modified":"2025-04-01T17:01:28","modified_gmt":"2025-04-01T08:01:28","slug":"dk4ryg5p6vzr8v7","status":"publish","type":"post","link":"https:\/\/eternalsphere.net\/echoes\/index.php\/2019\/09\/15\/dk4ryg5p6vzr8v7\/","title":{"rendered":"MariaDB\u8bbe\u7f6e\u521d\u59cb\u5316\u5bc6\u7801\u53ca\u4fee\u6539\u5bc6\u7801"},"content":{"rendered":"<p>\u65b9\u6cd51\uff1a<br \/>\n[root@localhost ~]# mysql<br \/>\nMariaDB[(none)]&gt; UPDATE mysql.user SET password = PASSWORD(\u2018newpassword\u2019) WHERE USER = \u2018root\u2019;<br \/>\nMariaDB[(none)]&gt; FLUSH PRIVILEGES;<\/p>\n<p>\u65b9\u6cd52\uff1a<br \/>\n[root@localhost ~]# mysql<br \/>\nMariaDB[(none)]&gt; SET password=PASSWORD(&#8216;newpassward&#8217;);<\/p>\n<p>\u65b9\u6cd53\uff1a<br \/>\n[root@localhost ~]# mysqladmin -u root password &#8216;newpassword&#8217;<br \/>\n\u5982\u679croot\u5df2\u7ecf\u8bbe\u7f6e\u8fc7\u5bc6\u7801\uff0c\u91c7\u7528\u5982\u4e0b\u65b9\u6cd5<br \/>\n[root@localhost ~]#mysqladmin -u root -p &#8216;oldpassword&#8217;\u00a0password &#8216;newpassword&#8217;<\/p>\n<p><a href=\"https:\/\/blog.csdn.net\/zwj52pk\/article\/details\/78651647\">https:\/\/blog.csdn.net\/zwj52pk\/article\/details\/78651647<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65b9\u6cd51\uff1a [root@localhost ~]# mysql MariaDB[(none)]&gt; UPDATE mysql.user SET password = PASSWORD(\u2018newpassword\u2019) WHERE USER = \u2018root\u2019; MariaDB[(none)]&gt; FLUSH PRIVILEGES; \u65b9\u6cd52\uff1a [root@localhost ~]# mysql MariaDB[(none)]&gt; SET password=PASSWORD(&#8216;newpassward&#8217;); \u65b9\u6cd53\uff1a [root@localhost ~]# mysqladmin -u root password &#8216;newpassword&#8217; \u5982\u679croot\u5df2\u7ecf\u8bbe\u7f6e\u8fc7\u5bc6\u7801\uff0c\u91c7\u7528\u5982\u4e0b\u65b9\u6cd5 [root@localhost ~]#mysqladmin -u root -p &#8216;oldpassword&#8217;\u00a0password &#8216;newpassword&#8217; https:\/\/blog.csdn.net\/zwj52pk\/article\/details\/78651647<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[],"class_list":["post-301","post","type-post","status-publish","format-standard","hentry","category-y8behyrmw-2lc"],"_links":{"self":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/comments?post=301"}],"version-history":[{"count":1,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/301\/revisions"}],"predecessor-version":[{"id":2285,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/301\/revisions\/2285"}],"wp:attachment":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/media?parent=301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/categories?post=301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/tags?post=301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}