现在我不是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
任何想法?