wget http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm yum -y install mysql57-community-release-el7-11.noarch.rpm #改镜像 vi /etc/yum.repos.d/mysql-community.repo baseurl=https://mirrors.bfsu.edu.cn/mysql/yum/mysql-5.7-community-el7-$basearch/ yum -y install mysql-server --nogpgcheck #不校验数字签名 vi /etc/my.cnf character-set-server=utf8 default-time_zone='+8:00' sql_mode="" systemctl start mysqld systemctl enable mysqld cat /var/log/mysqld.log| grep password #复制临时密码 mysql_secure_installation 设置密码
标签:vi,mysql5.7,community,centos7,mysqld,mysql,yum,el7 From: https://www.cnblogs.com/shaoing/p/16843703.html