时间:2021-07-01 10:21:17 帮助过:4人阅读
正确的姿势是:
CREATE USER ‘root‘@‘%‘ IDENTIFIED BY ‘****密码****‘;
GRANT ALL ON *.* TO ‘root‘@‘%‘;
ALTER USER ‘root‘@‘%‘ IDENTIFIED WITH mysql_native_password BY ‘****密码****‘;
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> select host, user, authentication_string, plugin from user;
Mysql 8.0 ERROR 1064 (42000)
标签:str you startup rom read string his lte ima