我是靠谱客的博主 粗暴蜜粉,这篇文章主要介绍ubuntu MySQL访问时出现ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using ,现在分享给大家,希望可以做个参考。

MySQL访问时出现ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
# /etc/init.d/mysql stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
mysql> FLUSH PRIVILEGES;
mysql> quit

# /etc/init.d/mysql restart
# mysql -uroot -p
Enter password: <输入新设的密码newpassword>

最后

以上就是粗暴蜜粉最近收集整理的关于ubuntu MySQL访问时出现ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using 的全部内容,更多相关ubuntu内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(48)

评论列表共有 0 条评论

立即
投稿
返回
顶部