sudo yum list mysql-server
sudo yum install mysql-server
sudo service mysqld start
修改root密码
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h ip password 'new-password'
用户名:root
密码:h25INC49jtfmZBPe
或者 mysql 连接上后
use mysql;
update user set password=password('密码') where user='root';
flush privileges;