标签:art tar root 改密码 支持 sql 输入 pass from
yum -y install mysql-server mysql mysql-devel
在命令行输入:service mysqld start
在命令行输入:mysql -u root -p
密码敲回车就登录进去了(默认密码为空)
set password = password(‘123456‘);
quit
update user set host=‘%‘ where user = ‘root‘;
select host from user where user=‘root‘;
flush privileges;
标签:art tar root 改密码 支持 sql 输入 pass from
原文地址:https://www.cnblogs.com/yanghaotai/p/9551768.html