我是靠谱客的博主 失眠雨,这篇文章主要介绍Mysql 8.0 ERROR 1064 (42000),现在分享给大家,希望可以做个参考。

在mysql 8.0中使用mysql5.7的语法对mysql进行远程登录授权时会报语法错误
Mysql 8.0 ERROR 1064 (42000)

正确的姿势是:

CREATE USER 'root'@'%' IDENTIFIED BY '****密码****'; 
GRANT ALL ON *.* TO 'root'@'%'; 
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '****密码****';

Mysql 8.0 ERROR 1064 (42000)

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)

最后

以上就是失眠雨最近收集整理的关于Mysql 8.0 ERROR 1064 (42000)的全部内容,更多相关Mysql内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(125)

评论列表共有 0 条评论

立即
投稿
返回
顶部