ERROR 1045 (28000): Access denied for user 'xxx'@'localhost' (using password: YES...

使用mysql ,出現新建帳戶沒法登陸問題mysql

 

查看 user列表中,有部分帳戶沒有設置密碼,將所有從新設置一遍密碼,而後仍是沒法登陸。sql

 

 

使用命令 update user set password=password("123456"); 更新user表中全部數據的密碼。dom

 

查看到user列表中有一個user 帳戶爲空。spa

 

經過 以下兩個命令,刪除多餘帳戶,並flush privileges解決問題。3d

delete from user where user="" and host="localhost.localdomain";blog

flush privileges;io

 

 

能夠成功的登陸了,登陸OK,以下ast

相關文章
相關標籤/搜索