无法在mysql中创建新用户

时间:2015-02-09 06:13:52

标签: mysql mysql-workbench mysql-error-1064

我正在尝试在mysql 5.6中创建一个新用户,但在执行查询时我收到错误。请帮忙。

mysql> create user dsuser@'%' indentified by 'Passw0rd';<br></b>
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 'indentified by 'Passw0rd'' at line 1

2 个答案:

答案 0 :(得分:2)

CREATE USER 'dsuser'@'%' IDENTIFIED BY 'Passw0rd';

请勿忘记用户名周围的引号。

答案 1 :(得分:0)

create user 'dsuser'@'%' indentified by 'Passw0rd';