mysql创建用户报错ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value

使用如下语句添加用户:

insert into mysql.user(Host,User,Password) values ("%","aas","Aas123456"); 

错语原因:

mysql用户表的中某些字段不能为空,没有默认值,其实是操作错误,mysql添加用户是不能这样直接insert user表的。

解决:

create user 'aas'@'%' identified by 'Aas123456';
posted @ 2019-08-15 14:10  Dream's  阅读(314)  评论(0编辑  收藏  举报