无法为本地主机创建用户

时间:2021-02-08 14:28:45

标签: mysql mariadb

我尝试使用此命令添加用户:

MariaDB [(none)]> CREATE USER 'myuser'@'127.0.0.1' IDENTIFIED WITH mysql_native_password BY 'somePassword';

但它抛出了这个错误

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'BY 'somePassword'' at line 1

有人可以帮我解决我做错了什么吗?

0 个答案:

没有答案
相关问题