CentOS7安装Mysql5.7图文步骤:
1.下载 MySQL官方的 Yum Repository
wget http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
2.安装 Yum Repository
yum -y install mysql57-community-release-el7-10.noarch.rpm
3.安装mysql
yum -y install mysql-community-server
4.启动mysql
systemctl start mysqld.service
5.查看mysql
systemctl status mysqld.service
6.获取默认密码
grep "password" /var/log/mysqld.log
7.修改默认密码
mysql -u root -p #运行,输入旧密码:hAgeReSBx6)u,登陆
ALTER USER 'root'@'localhost' IDENTIFIED BY '1818IP.com'; #新密码设置为1818IP.com
8.退出,安装成功