mysql8设置远程连接报错 grant all privileges on *.* to 'root'@'%' identified by

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'identified by 'root' with grant option' at line 1

mysql8中已经不支持grant all privileges on *.* to 'root'@'%' identified by '密码' with grant option这种写法。

应该使用

grant all privileges on *.* to 'root'@'%' ;

  其中, @'%',修改为root用户对应的 '密码';

 

mysql8设置远程连接报错 grant all privileges on *.* to 'root'@'%' identified by

 

上一篇:mysql8出现连接错误2059解决方法


下一篇:Mysql8-----client does not support authentication