授予特权以远程访问mysql数据库

时间:2018-11-09 15:19:26

标签: remote-access mysql-8.0

当我尝试授予特权以远程访问MySql 8.0数据库时。我收到以下错误。

命令:-

 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;

错误:-

 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' WITH GRANT OPTION' at line 1

我试图检查可能出问题的地方,但似乎无法使其工作。非常感谢您的帮助。

此外,上一行中提到的此“密码” 的用途是什么?

0 个答案:

没有答案