shell> wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.18-1.el7.x86_64.rpm-bundle.tarshell> tar xvf MysqL-5.7.18-1.el7.x86_64.rpm-bundle.tarshell> sudo yum install MysqL-community-{server,client,common,libs}-* shell> vi /etc/my.cnf validate_password_policy=LOW :wq shell> sudo service MysqLd start shell> sudo grep 'temporary password' /var/log/MysqLd.log shell> MysqL_secure_installation shell> MysqL -u root -p
原文链接:https://www.f2er.com/centos/377620.html