当前位置:网站首页>ERROR 1364 (HY000): Field ssl_cipher doesnt have a default value
ERROR 1364 (HY000): Field ssl_cipher doesnt have a default value
2022-06-22 15:23:00 【夜七天】
添加用户 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版本上操作的。
错语原因:
mysql用户表的中某些字段不能为空,没有默认值,其实是操作错误,mysql添加用户是不能这样直接insert user表的。
解决方法:
正确的添加用户方法:
GRANT USAGE ON *.* TO 'user01'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION;
用户:user01,密码:123456,这样就添加了一个新的用户,不会出以上的错误了。
边栏推荐
- 【小程序项目开发-- 京东商城】uni-app开发之轮播图
- 让代码优雅起来(学会调试+代码风格)
- Google Chrome small details
- Task scheduling design of collection system
- 浙江创投圈的“半壁江山”,还得是国资
- SAP ABAP data dictionary tutorial se11: tables, locked objects, views, and structures-03
- 预约打新债到底安不安全呀?是不是靠谱的?
- Solve the problem of MySQL remote login permission
- Make the text template in pycharm project support jinjia2 syntax
- 视频爆炸时代,谁在支撑视频生态网高速运行?
猜你喜欢

Basic knowledge of audio and video | analysis of ANS noise suppression principle

Summary of JS methods for obtaining data types

安全信得过!天翼云数据安全管理平台通过评测

Jsp Learning (2) - - jsp script Elements and instructions

Runtime -- explore the nature of classes, objects, and classifications

SAP ABAP 中的用户出口和客户出口-015

5 modes of IO model

【小程序项目开发-- 京东商城】uni-app开发之配置tabBar & 窗口样式

SAP ABAP 内部表:创建、读取、填充、复制和删除-06

6.GUI(图形,填充)
随机推荐
Reddit对LaMDA模型的探讨:并非无状态,采用双重过程,相比它编辑维基百科的方式,有没有感情并不重要
SAP 中的 ABAP 查询教程:SQ01、SQ02、SQ03-017
Make the text template in pycharm project support jinjia2 syntax
Make the code elegant (learn debugging + code style)
Consumption monitoring of Prometheus monitoring [consult exporter]
SAP ABAP 中的 Smart Forms-014
SAP ABAP BAPI-016
SAP ABAP 内部表:创建、读取、填充、复制和删除-06
【微信小程序封装底部弹出框二】
Runtime -- explore the nature of classes, objects, and classifications
Summary of safari compatibility issues
NiO uses writable events to handle the situation of one-time write incompleteness
【C语言深度解剖】关键字if&&else&&bool类型
【小程序项目开发-- 京东商城】uni-app开发之配置tabBar & 窗口样式
Jsp Learning (2) - - jsp script Elements and instructions
短视频源码开发,优质的短视频源码需要做好哪几点?
CUMT学习日记——数字图像处理考试速成笔记
Smart forms-014 in SAP ABAP
为数字添加千分位符号(金额千分位)
SAP ABAP 中的模块化:宏、子程序和功能模块 -04