例如:添加用户
insert into mysql.user(host,user,password) values(localhost,test,password(1234));
报出:以下的错误
error 1364 (hy000): field 'ssl_cipher' doesn't have a default value错误
mysql5.1以上版本,我是在5.6版本上操作的。
正确的方法:可以用下面的命令:
grant usage on *.* to 'user01'@'localhost' identified by '123456' with grant option;
用户:user01,密码:123456,这样就添加了一个新的用户,不会出以上的错误了。