首页 > 解决方案 > mysql 错误您的 SQL 语法有错误

问题描述

当我尝试以下命令尝试授予权限时,出现以下错误,谁能告诉我为什么会出现语法错误?

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

标签: mysqldatabase

解决方案


尽量避免被...识别

grant all privileges on ufo.* to 'abc'@'%';

推荐阅读