{"id":523,"date":"2019-08-23T14:01:21","date_gmt":"2019-08-23T06:01:21","guid":{"rendered":"https:\/\/www.linuxdevops.cn\/?p=523"},"modified":"2019-08-23T14:01:22","modified_gmt":"2019-08-23T06:01:22","slug":"cazm","status":"publish","type":"post","link":"https:\/\/www.linuxdevops.cn\/2019\/08\/cazm\/","title":{"rendered":"Centos7yum \u5b89\u88c5mysql8.0"},"content":{"rendered":"\n
wget https:\/\/dev.mysql.com\/get\/mysql80-community-release-el7-1.noarch.rpm<\/code>\n\u00a0\n#\u5b89\u88c5yum\u6e90<\/code>\nyum localinstall mysql80-community-release-el7-1.noarch.rpm<\/code>\n\u00a0\n#\u66f4\u65b0yum\u6e90<\/code>\nyum clean all<\/code>\nyum makecache<\/code>\n\u00a0\n#\u5f00\u59cb\u5b89\u88c5MySQL<\/code>\nyum install<\/code> mysql-community-server<\/code>\n\u00a0\n#\u542f\u52a8MySQL<\/code>\nsystemctl start mysqld<\/code>\n\u00a0\n#\u542f\u52a8\u6210\u529f\u540e\u53ef\u4ee5\u67e5\u770b\u521d\u59cb\u5316\u5bc6\u7801\u968f\u673a\u751f\u6210\u7684<\/code>\ncat<\/code> \/var\/log\/mysqld.log | grep<\/code> password<\/code>\n\u00a0\n#\u767b\u5f55MySQL\u4fee\u6539mysql\u7528\u6237\u5bc6\u7801<\/code>\nmysql -u root -p<\/code>\nmysql> ALTER USER 'root'@'localhost'<\/code> IDENTIFIED BY 'yourpassword';<\/code>\n#\u8fdc\u7a0b\u8bbe\u7f6e<\/code>\nmysql> use mysql;<\/code>\nmysql> update user set<\/code> host='%'<\/code> where user='root';<\/code>\n#\u6388\u6743\u7528\u6237\u540d\u7684\u6743\u9650\uff0c\u8d4b\u4e88\u4efb\u4f55\u4e3b\u673a\u8bbf\u95ee\u6570\u636e\u7684\u6743\u9650<\/code>\nmysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'WITH GRANT OPTION;<\/code>\nmysql> FLUSH PRIVILEGES;<\/code> <\/pre>\n","protected":false},"excerpt":{"rendered":"wget https:\/\/dev.mysql.com\/get\/mysql80-community-releas<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,18,15],"tags":[],"yoast_head":"\n
Centos7yum \u5b89\u88c5mysql8.0 - Linux\u81ea\u52a8\u5316\u8fd0\u7ef4<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n