centos msyql 5.7 yum安装

1、wget https://repo.mysql.com//mysql57-community-release-el6-11.noarch.rpm

2、yum localinstall mysql57-community-release-el6-11.noarch.rpm

3、yum install mysql-community-server  http://blog.csdn.net/zhu_tianwei/article/details/53417995(安装遇到问题访问此链接)

4、service mysqld start

5、grep 'temporary password' /var/log/mysqld.log

6、mysql -uroot -p

7、ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass4!';

 

 

https://segmentfault.com/a/1190000010030568(另一个安装教程)

posted @ 2017-07-13 13:33  火*火  阅读(158)  评论(0编辑  收藏  举报