mysql]ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value
2015-07-14 23:48
519 查看
第一种方法:
原因:在我的配置文件my.cnf中有这样一条语句
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
指定了严格模式,为了安全,严格模式禁止通过insert 这种形式直接修改mysql库中的user表进行添加新用户
解决办法:
将配置文件中的STRICT_TRANS_TABLES删掉,即改为:
sql_mode=NO_ENGINE_SUBSTITUTION
然后重启mysql即可
第二种方法:
grant usage on *.* to 'username'@'hostname' identified by 'passwd' with grant option; //添加用户
grant all privileges on *.* to
'username'@'hostname' identified by 'passwd'; //添加权限
flush privileges; //更新权限
原因:在我的配置文件my.cnf中有这样一条语句
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
指定了严格模式,为了安全,严格模式禁止通过insert 这种形式直接修改mysql库中的user表进行添加新用户
解决办法:
将配置文件中的STRICT_TRANS_TABLES删掉,即改为:
sql_mode=NO_ENGINE_SUBSTITUTION
然后重启mysql即可
第二种方法:
grant usage on *.* to 'username'@'hostname' identified by 'passwd' with grant option; //添加用户
grant all privileges on *.* to
'username'@'hostname' identified by 'passwd'; //添加权限
flush privileges; //更新权限
相关文章推荐
- iOS学习笔记-02-SubUIViews
- ios学习笔记-01-UIView
- iOS开发UI篇 -- 0401微博主页-自定义cell
- arduino uno 多机串口通信
- iOS多线程编程之NSOperation和NSOperationQueue的使用
- 欢迎使用CSDN-markdown编辑器
- UITableVIew的性能优化-重用原理
- [翻译] BAFluidView
- [Erlang_Question32]ibrowse流程及性能测试
- iOS Xcode 6报错:setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key v
- ueditor引入通用优酷视频
- Easyui Tab刷新
- UIScrollView 实现比例缩放
- UiAutomator喷射事件的源代码分析
- UIKit之浅析UIButton
- 关于继承UITableViewController若干问题
- Table的分割线偏移量设置 及其 UIEdgeInset详解
- iOS开发UI篇—UITabBarController简单介绍
- iOS --- 搜索框UISearchController的使用(iOS8.0以后替代UISearchBar + UISearchDisplayController的组合)
- NSArray, NSNumber, NSValue, NSSet, 数组排序