centos7安装mysql5.7教程
下载 MySQL官方Yum Repository
wget http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
1.安装 Yum Repository
yum -y install mysql57-community-release-el7-10.noarch.rpm
2.安装mysql
yum -y install mysql-community-server
启动mysql
systemctl start mysqld.service systemctl status mysqld.service
获取mysql root的默认密码
grep "password" /var/log/mysqld.log
修改默认密码
mysql -uroot -p
输入.Bg>H2Aj/uMe(刚咱们查看的默认密码)
咱把密码设置成WWW.77isp.com
ALTER USER 'root'@'localhost' IDENTIFIED BY 'WWW.77isp.com';
安装完成!
转载请注明:IT运维空间 » Mysql » centos7安装mysql5.7教程
发表评论