mysql增加新用户无法登陆解决方法 ERROR 1045 (28000): Access denied for user ‘appadmin‘@‘localhost‘ (using password: YES)
在搭建堡垒机jumpserver时,安装mysql后碰到这么一个问题:
新增用户jumpserver后,无法登陆,报以上错误。
解决办法:
解决方法: 增加普通用户后,执行: mysql> use mysql mysql> delete from user where user=‘‘; mysql> flush privileges; 意思是删除匿名用户
授权即可。 GRANT ALL PRIVILEGES ON *.* TO ‘jumpserver‘@‘localhost‘ IDENTIFIED BY ‘somepassword‘ WITH GRANT OPTION;
原文地址:https://www.cnblogs.com/tigergaonotes/p/11116656.html
时间: 2024-09-28 23:43:29