mysql错误您的SQL语法有错误

mysql错误您的SQL语法有错误,mysql,database,Mysql,Database,当我尝试使用下面的命令来授予特权时,我得到了下面的错误,有人能告诉我为什么会出现语法错误吗 mysql> grant all privileges on ufo.* to 'abc'@'%' identified by 'abc'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for t

当我尝试使用下面的命令来授予特权时,我得到了下面的错误,有人能告诉我为什么会出现语法错误吗

mysql> grant all privileges on ufo.* to 'abc'@'%' identified by 'abc';




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

尽量避免被

grant all privileges on ufo.* to 'abc'@'%';
可能重复的