1)yum install mysql-service
2)systemctl start mysqld.service
连接mysql,初始密码为空,然后执行
3)alter user 'root'@'localhost' identified by '123';
1)yum install mysql-service
2)systemctl start mysqld.service
连接mysql,初始密码为空,然后执行
3)alter user 'root'@'localhost' identified by '123';