链接:https://pan.baidu.com/s/17-_gRriJlhg2Gho3vAdrsw
提取码:4wja
wget http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm yum -y localinstall mysql57-community-release-el7-11.noarch.rpm yum -y repolist enabled | grep "mysql.*-community.*" yum -y install mysql-community-server # 启动和关闭 systemctl start mysqld systemctl status mysqld # 开启启动 systemctl enable mysqld systemctl daemon-reload # 查看初始密码 grep 'temporary password' /var/log/mysqld.log mysql -uroot -p set global validate_password_policy=LOW; set global validate_password_policy=0; set global validate_password_length=1; ALTER USER 'root'@'localhost' IDENTIFIED BY 'root'; GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;FLUSH PRIVILEGES; vim /etc/my.cnf [mysqld] character_set_server=utf8 init_connect='SET NAMES utf8' # 重启服务 systemctl restart mysqld
链接:https://pan.baidu.com/s/13imSjimTr4FdIV7I3PnkAw
提取码:6yp8