MySQL 8

作者: eqieyiran | 来源:发表于2021-04-16 11:01 被阅读0次

一 密码

ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';
Query OK, 0 rows affected (0.00 sec)

mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';

[mysqld]
default_authentication_plugin = mysql_native_password

mysql> SELECT Host, User, plugin from user;
+-----------+------------------+-----------------------+
| Host      | User             | plugin                |
+-----------+------------------+-----------------------+
| %         | root             | mysql_native_password |
| localhost | mysql.infoschema | caching_sha2_password |
————————————————





相关文章

网友评论

      本文标题:MySQL 8

      本文链接:https://www.haomeiwen.com/subject/pntelltx.html