在服务器版本上授予mysql的所有语法:8.0.11 MySQL

时间:2018-06-05 23:15:12

标签: mysql grant

它出了什么问题

grant all privileges on apip.* to 'root'@'%'  IDENTIFIED BY PASSWORD 'rootadmin';

它出现以下错误

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 PASSWORD 'rootadmin'' at line 1

1 个答案:

答案 0 :(得分:2)

Visual Studio InstallerCREATE USER命令接受的关键字,而不是GRANT命令。