wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
rpm -ivh mysql57-community-release-el7-9.noarch.rpm
yum install mysql-server
mysqld --initialize
chown mysql:mysql -R /var/lib/mysql
systemctl start mysqld
service mysqld restart
systemctl status mysqld
mysqladmin --version
cat /etc/my.cnf
cat /var/log/mysqld.log
grep 'temporary password' /var/log/mysqld.log
mysql -uroot -p'kYOob33wi2&u'
alter user user() identified by "123";
use mysql;
select host,user from user;
UPDATE user SET Host='%' WHERE User='root' AND Host='localhost' LIMIT 1;
flush privileges;
http://www.runoob.com/mysql/mysql-install.html