2015-02-09 124 views
0

我正在嘗試在MySQL 5.6中創建新用戶,但在執行查詢時出現錯誤。請幫忙。無法在mysql中創建新用戶

mysql> create user [email protected]'%' 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 
+0

該關鍵字拼寫爲**'IDENTIFIED' **,而不是**'INDENTIFIED' **。 – spencer7593 2015-02-09 06:32:06

回答

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

不要忘記在你的用戶名引號爲好。

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

@Jens - 圍繞用戶名引用,因爲它是必需的。 – 2015-02-09 06:18:56

+0

@JoelCox請將解釋添加到您的答案中。 – Jens 2015-02-09 06:19:20

+0

對此也有同樣的錯誤。我已經嘗試過了。 – raj 2015-02-09 06:19:24