linux下连接mysql,Error 1045(28000):Access denied for user 'root'@'localhost' (using password :YES)

参考https://blog.csdn.net/natejeams/article/details/52049942
这篇的解决方案.没有用.
mysql版本是5.7.
最后一个很直接的方式,修改/etc/my.cnf配置文件
在[mysqld]节点下,增加
skip-grant-tables

猜你喜欢

转载自blog.csdn.net/weixin_36998210/article/details/81629803