今天,我想在 PMA 中创建一个数据库。它说:“无法登录到 MySQL 服务器”。我通过终端尝试过,同样的问题,这是因为我的密码错误。我不明白为什么。
我尝试了常用的方法来重置 root 密码(跳过授权表安装并重置密码),但似乎不起作用。
看到:
morgan@rakija:~$ sudo mysqld_safe --skip-grant-tables &
[1] 14016
morgan@rakija:~$ 150802 19:07:25 mysqld_safe Can't log to error log and syslog at the same time. Remove all --log-error configuration options for --syslog to take effect.
150802 19:07:25 mysqld_safe Logging to '/var/log/mysql/error.log'.
150802 19:07:25 mysqld_safe A mysqld process already exists
[1]+ Terminé 1 sudo mysqld_safe --skip-grant-tables
morgan@rakija:~$ mysql -u root
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id …Run Code Online (Sandbox Code Playgroud)