centos 6 安装mysql 5.7

rpm -qa | grep -i mysql
rpm -e xxxx
wget http://dev.mysql.com/get/mysql57-community-release-el6-9.noarch.rpm
yum localinstall mysql57-community-release-el6-9.noarch.rpm
yum repolist enabled | grep "mysql.*-community.*"
yum install mysql
yum install mysql-server
service mysqld retsart

如果MySQL Daemon failed to start.
最好重命名以下目录
rm -fr /var/lib/mysql/*
rm /var/lock/subsys/mysqld
killall mysqld
service mysqld retsart
查看临时的初始密码
grep 'temporary password' /var/log/mysqld.log
mysql_secure_installation

/etc/init.d/mysqld restart

发表评论

电子邮件地址不会被公开。 必填项已用*标注