其他分享
首页 > 其他分享> > 1044/1045 - Access denied for user 'username'@'yourhost'

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";

标签:username,YourUserName,1045,1044,PRIVILEGES,IDENTIFIED,YourPassword,user,Password
来源: https://www.cnblogs.com/zhongjicainiao/p/11101383.html