3.运行完之后输入以下指令,可以查看mysql是否运行
service mysql status
反馈
Mysql正常运行
4.登录mysql
mysql -u root -p
密码为空,进入mysql
5.设置root账号的密码
依次运行以下命令
use mysql;
update mysql.user set authentication_string=password('你的密码') where user='root' and Host ='localhost';
update user set plugin="mysql_native_password";
flush privileges;