我尝试使用CREATE USER admin@localhost;
创建新用户,但到目前为止它还没有成功。我收到错误ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
。但是,该错误涉及密码,但我没有输入任何密码。
任何人都可以告诉我这有什么问题吗?
答案 0 :(得分:0)
不确定这是否如此简单,但您需要指定密码......
下面是语法
mysql> CREATE USER 'jeffrey'@'localhost'
-> IDENTIFIED BY 'mypass';
更多信息,请参阅参考:https://dev.mysql.com/doc/refman/5.7/en/assigning-passwords.html