我无法登录到 Ubuntu 14.04.4 上 phpmyadmin 上的根帐户。
我已仔细阅读下列内容并遵循其中的说明:
我收到以下错误(Access denied
):
root@phpmyadmin-8gb-sgp1-01-13feb17-2327hrs-8gb-sgp1-01:~# sudo service mysql stop
stop: Unknown instance:
root@phpmyadmin-8gb-sgp1-01-13feb17-2327hrs-8gb-sgp1-01:~# sudo mysqld --skip-grant-tables &
[1] 12052
root@phpmyadmin-8gb-sgp1-01-13feb17-2327hrs-8gb-sgp1-01:~# 170226 1:11:55 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
170226 1:11:55 [Note] mysqld (mysqld 5.5.49-0ubuntu0.14.04.1) starting as process 12053 ...
mysql -u root mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
我该如何解决这个问题?
注意:即使使用“sudo mysql -u root mysql”,我也遇到同样的错误:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)