度娘很久都未能解决,大多都是修改配置文件,或是执行如下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";