Centos 6.8 yum安装 mysql5.7

lys2017年11月14日 0条评论

1.首先进入该页面 

https://dev.mysql.com/doc/refman/5.7/en/linux-installation-yum-repo.html

2.下载安装该包  

进入  https://dev.mysql.com/downloads/repo/yum/

(mysql57社区释放,el6-11.noarch.rpm) 下载

3. yum install mysql57-community-release-el6-11.noarch.rpm


4.yum install mysql-community-server


5.service mysqld start


6.

shell> sudo service mysqld status

mysqld (pid 3066) is running.


7.查看密码

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