MySQL > UPDATE user set password=PASSWORD('yournewpassword') where user='';
MySQL > FLUSH PRIVILEGES;
PASSWORD(); 加密密码
flush privileges; 刷新权限表
MySQL > FLUSH PRIVILEGES;
PASSWORD(); 加密密码
flush privileges; 刷新权限表
转载于:https://my.oschina.net/lishixi/blog/63524