📜  MYSQL SERVER 的 AUTH 错误修复 - 无论代码示例

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

代码示例1
cd "C:\Program Files\MySQL\MySQL Server 8.0\bin"

C:\Program Files\MySQL\MySQL Server 8.0\bin> mysql -u root -p
Enter password: *********

mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'newrootpassword';
Query OK, 0 rows affected (0.10 sec)

mysql> exit