1.修改密码:alter user ‘user name‘@‘localhost‘ identified by ‘new password‘;
2.授权远程登陆:grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘demon123‘;
flush privileges;
mysql-常用命令
原文:https://www.cnblogs.com/xxxxxiaochuan/p/13576921.html