提问人:soyyy 提问时间:2/9/2023 最后编辑:RiggsFollysoyyy 更新时间:2/9/2023 访问量:442
错误 1045 (28000):用户“root”@“localhost”的访问被拒绝:即使我使用了 sudo
ERROR 1045 (28000): Access denied for user 'root'@'localhost' : even though I used sudo
问:
~ mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
~ sudo mysql -u root -p
Password:
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
即使我尝试了 sudo,它也不起作用。我应该怎么做才能解决这个问题?
答: 暂无答案
评论
sudo mysqld --skip-grant-tables --skip-networking
[ERROR] [MY-010123] [Server] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root! 2023-02-08T17:45:42.719900Z 0 [ERROR] [MY-010119] [Server] Aborting