現在我不是MySQL專業人員,但我已經使用了它5到6年的時間,我從未遇到過:似乎無法在MySQL控制檯中創建用戶(錯誤1064(42000))
- 我通過SSH
- 我登錄到MySQL登錄到我的服務器通過
mysql -u root -pSUPER_SECRET_PASSWORD
- 我寫:
CREATE USER 'magical_username'@'locahost' IDENTIFIED BY 'super_magical_password';
現在,這是它會很奇怪。我希望查詢工作,我可以去授予權限,但是,我得到這個:
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 'USER 'magical_username'@'localhost' IDENTIFIED BY 'super_magical_password' at line 1
任何想法?