📌  相关文章
📜  出现错误:1698:尝试连接时拒绝用户“root”@“localhost”的访问 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:48.162000             🧑  作者: Mango

代码示例2
$ sudo mysql -u root # I had to use "sudo" since is new installation

mysql> USE mysql;
mysql> UPDATE user SET plugin='mysql_native_password' WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> exit;

$ service mysql restart