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

Posted dreamfather

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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‘;

以上是关于mysql创建用户报错ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value的主要内容,如果未能解决你的问题,请参考以下文章

MySQL添加用户错误:ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value解决方法(示例代码

Mysql添加用户错误:ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value解决方法(示例代码

MySQL state [HY000]; error code [1364];

MySQL ERROR 1820 (HY000)

mysql 5.7升级8.0 ERROR 1726 (HY000): Storage engine

MySQL数据库使用报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before execu