{"id":152,"date":"2019-03-05T14:13:54","date_gmt":"2019-03-05T06:13:54","guid":{"rendered":"https:\/\/www.aiqinqin.info\/?p=152"},"modified":"2022-03-31T12:01:48","modified_gmt":"2022-03-31T04:01:48","slug":"centos7%e9%80%9a%e8%bf%87yum%e6%96%b9%e5%bc%8f%e5%ae%89%e8%a3%85mysql8","status":"publish","type":"post","link":"https:\/\/www.aiqinqin.info\/?p=152","title":{"rendered":"CentOS7\u901a\u8fc7yum\u65b9\u5f0f\u5b89\u88c5mysql8"},"content":{"rendered":"<ul>\n<li>mysql8\u589e\u52a0\u4e86\u8bb8\u591a\u65b0\u7279\u6027\uff0c\u6bd4\u5982\u652f\u6301JSON\u683c\u5f0f\uff0c\u5bc6\u7801\u8ba4\u8bc1\u65b9\u5f0f\u6539\u6210\u4e86&#8221;caching-sha2-password&#8221;\uff0c\u4e0d\u8fc7\u5f88\u591a\u5ba2\u6237\u7aef\u8fd8\u4e0d\u652f\u6301\u7684\uff0c\u5728\u5c06\u6765\u80af\u5b9a\u90fd\u4f1a\u652f\u6301\u7684\u3002\u5982\u679c\u5ba2\u6237\u7aef\u4e0d\u652f\u6301\u7684\u8bdd\u8fd8\u662f\u53ef\u4ee5\u6539\u6210&#8221;mysql_native_password&#8221;\u65b9\u5f0f\u3002<\/li>\n<\/ul>\n<pre><code class=\"\">#!\/bin\/bash\nyum install wget -y\nwget https:\/\/repo.mysql.com\/\/mysql80-community-release-el7-1.noarch.rpm\nrpm -Uvh mysql80-community-release-el7-1.noarch.rpm\nrpm --import https:\/\/repo.mysql.com\/RPM-GPG-KEY-mysql-2022\nyum install mysql-community-server -y\nsystemctl start mysqld.service\nsystemctl enable mysqld.service\nsystemctl status mysqld.service\n\n#\u67e5\u770bmysql\u81ea\u5df1\u751f\u6210\u7684\u4e34\u65f6\u5bc6\u7801\ngrep 'temporary password' \/var\/log\/mysqld.log\n\n## \u7531\u4e8e default_password_lifetime \u7684\u5b58\u5728\uff0c\u5fc5\u987b\u4fee\u6539\u9ed8\u8ba4\u5bc6\u7801\u4e4b\u540e\u624d\u80fd\u4f7f\u7528\nalter user user() identified by \"yourpassword\";\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>mysql8\u589e\u52a0\u4e86\u8bb8\u591a\u65b0\u7279\u6027\uff0c\u6bd4\u5982\u652f\u6301JSON\u683c\u5f0f\uff0c\u5bc6\u7801\u8ba4\u8bc1\u65b9\u5f0f\u6539\u6210\u4e86&#8221;caching-sha2- [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,22,13,4],"tags":[],"class_list":["post-152","post","type-post","status-publish","format-standard","hentry","category-linux","category-mysql","category-shell-linux","category-database"],"_links":{"self":[{"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/posts\/152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=152"}],"version-history":[{"count":3,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/posts\/152\/revisions"}],"predecessor-version":[{"id":773,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=\/wp\/v2\/posts\/152\/revisions\/773"}],"wp:attachment":[{"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aiqinqin.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}