1044/1045 - Access denied for user 'username'@'yourhost'

          度娘很久都未能解決,大多都是修改配置文件,或是執行如下SQL:

         update user set Password=password('111111') where `user`='root';

          我本地執行沒有成功,而且還報了一個錯誤:ERROR 1348 (HY000): Column 'Password' is not updatable

         官網上解決辦法則很直接而且也很有效

         GRANT ALL PRIVILEGES ON *.* TO 'YourUserName'@'%' IDENTIFIED BY "YourPassword";

           or

          GRANT ALL PRIVILEGES ON *.* TO 'YourUserName'@'YourIP' IDENTIFIED BY "YourPassword";

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章