[mysql]ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value
我的MySQL版本为5.6.14版本,是二进制包安装的(虽然是二进制包安装的,但是以下问题同样适用于源码安装包安装的MySQL)
今天在我的测试库上添加一个新用户,报错:
[mysql@ydrh2 ~]$ mysql -uroot -p123456 Warning: Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.6.14-enterprise-commercial-advanced MySQL Enterprise Server - Advanced Edition (Commercial) Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> insert into user(host,user,password) values("localhost","peter1",password("123456")); ERROR 1046 (3D000): No database selected mysql> use mysql; Reading table information for completion of table and column namesYou can turn off this feature to get a quicker startup with -A Database changed mysql> insert into user(host,user,password) values("localhost","peter1",password("123456")); ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value
原因:在我的配置文件my.cnf中有这样一条语句
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
指定了严格模式,为了安全,严格模式禁止通过insert 这种形式直接修改mysql库中的user表进行添加新用户
解决办法:
将配置文件中的STRICT_TRANS_TABLES删掉,即改为:
sql_mode=NO_ENGINE_SUBSTITUTION
然后重启mysql即可
(资源库 www.zyku.net)
栏 目:MySQL
本文标题:[mysql]ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value
本文地址:https://www.zyku.net/mysql/123.html
您可能感兴趣的文章
- 03-11centos源码安装nginx1.8.0+php5.6.10+mysql5.6.12的方
- 12-10iphone se2如何开启指纹密码锁屏
- 09-14WinSCP普通用户上传文件权限设置方法
- 10-22京东双十一热爱环游记怎么玩
- 01-11起点女生网-起点女生网应用软件功能介
- 02-22dedecms调用当前文档url地址的标签
- 07-05Linux patch命令
- 01-12送来电-送来电应用软件功能介绍
- 07-07oppo手机取消自动旋转方法
- 01-14扫描全能翻译王-扫描全能翻译王应用软
- 11-14Windows常见bat批处理命令del/rd清理
- 03-10小米MIUI电池健康显示功能查看方法
- 12-27百师教育网-百师教育网应用软件功能介
- 01-18快播QvodPlayer-快播QvodPlayer应用软
- 01-12数字填色绘画书-数字填色绘画书应用软
- 08-15Audition跨多个剪辑选择音频声道方法
- 09-26苹果手机怎样隐藏照片
- 03-03wordpress防黑教程之修改登录错误提示
- 04-21iqooz3竖屏锁定功能设置方法
- 12-27小天才兜兜龙-小天才兜兜龙应用软件功
最近更新
阅读排行
猜你喜欢
- 12-18HTML <output> 标签
- 08-15PS图片转换彩绘方法介绍
- 01-28华为应用市场个性化推荐功能关闭方法
- 02-22DedeCMS模板常用的内容数量统计sql标
- 12-09荣耀60模拟颜色空间在哪里关闭
- 07-05Linux ar命令
- 02-20IIS 7.5中提供的Web服务器(IIS)角色服
- 09-11高德打车紧急联系人添加教程一览
- 09-20Mix滤镜大师黑白滤镜设置教程介绍
- 02-19小米9手机电池耗电快解决办法