查看mysql默认密码登录数据库
cat /etc/mysql/debian.cnf
查看root用户数据
use mysql;
select User, Host, authentication_string from user;
增加root用户远程登录权限
grant all privileges on . to ‘root’@’%’ identified by ‘pnetlab’ with grant option;
微信扫一扫
cat /etc/mysql/debian.cnf
use mysql;
select User, Host, authentication_string from user;
grant all privileges on . to ‘root’@’%’ identified by ‘pnetlab’ with grant option;
相关推荐