不积跬步无以至千里,后继才能薄发
1 | wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm |
1 | yum localinstall mysql57-community-release-el7-11.noarch.rpm |
1 | yum install -y mysql-community-server |
1 | systemctl start mysqld |
1 | cat /var/log/mysqld.log | grep root |
1 | set global validate_password_policy=0; //设置密码策略为简单 |
1 | GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; |