MySQL授权语法错误

MySQL授权语法错误,mysql,sql,Mysql,Sql,您好,我尝试运行此SQL查询: grant all on `mch`.* to 'admin'@'localhost' identified by '123456'; 但它抱怨说: 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 'ide

您好,我尝试运行此SQL查询:

grant all on `mch`.* to 'admin'@'localhost' identified by '123456';
但它抱怨说:

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

根据您使用的版本,不再允许此操作

从MySQL 5.7.2开始,如果该帐户已经存在,则标识为 禁止使用,因为它仅用于创建新的 账目