这不起作用:
use mysql
GRANT ALL ON *.* TO 'root'@'192.168.1.2'
也不是
use mysql
GRANT ALL ON *.* TO 'root'@'192.168.1.2' IDENTIFIED BY 'password'
这是我遇到的错误:
#1064 - 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 'GRANT ALL ON *.* TO 'root'@'192.168.1.2'' at line 3
我使用的是服务器版本 5.5.8。怎么了?
最佳答案
试试这个:
use mysql
GRANT ALL ON *.* TO 'root@192.168.1.2' IDENTIFIED BY 'password'
关于mysql - 授予所有语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14538007/