mysql日常小错误
wind信子
自我觉醒,无所畏惧
展开
-
ERROR 1064 (42000):You have an error in your SQL syntax; check the manual that corresponds to your M
当授权用户出现“ERROR 1064 (42000):You have an error in your SQL syntax; check the manual that corresponds to your M“这个错误时,因该好好检查自己的SQL语句是否写少,还是写错。原创 2017-09-19 17:48:42 · 6507 阅读 · 0 评论 -
ERROR 1 (HY000): Can't create/write to file '/myload/user6.txt' (Errcode: 13 - Permission denied)
Mysql 做导出数据到自定义目录时报“ERROR 1 (HY000): Can't create/write to file '/myload/user6.txt' (Errcode: 13 - Permission denied)”这个错时,是因为没有W权限,你可以这加回就可以了 chown mysql "你自定义的目录".原创 2017-09-19 10:12:14 · 2513 阅读 · 0 评论 -
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
当你出现“ERROR 1819 (HY000): ”的报错时,是你的密码长度有问题,长度不够,解决方法就是输够秘密长度就可以了。原创 2017-09-20 10:02:12 · 4199 阅读 · 0 评论 -
CentOS7yum安装mysql+需要:libsasl2.so.2()(64bit)
1.rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm #下载2.yum install yum-utils -y #装源3.yum-config-manager --disable mysql56-community # 禁用MySQL5.6的源4.yum-config-manage...原创 2018-07-30 20:38:19 · 41249 阅读 · 15 评论 -
ERROR 1030 (HY000) at line 33: Got error 168 from storage engine
全库导入出现:ERROR 1030 (HY000) at line 33: Got error 168 from storage engine报错提示,大概意思是导入的数据库引擎与我的库不匹配.一下是个人解决方法.1.修改mysql配置文件.vim /etc/mysql/my.cnfdefault-storage-engine=innodb #我的数据库存储引擎是innod...原创 2018-08-06 15:40:28 · 22693 阅读 · 0 评论 -
ERROR 1217 (23000): Cannot delete or update a parent row: a foreign key constraint fails
mysql数据库删除一张表报错ERROR 1217 (23000): Cannot delete or update a parent row: a foreign key constraint fails报错原因: 出现这个报错原因是你在执行一条删除表的操作,而且这个表是一个建有主键的表,这张父表被里一张子表用了外键关联起来了.你可以先删除与它有关联的子表,再删除父表.查看语句:...翻译 2019-04-15 14:02:08 · 1702 阅读 · 0 评论 -
ERROR 1215 (HY000): Cannot add foreign key constraint
今天练习数据库练习到建立外键需要关联表的时候报了个错,怎么检查都没发现错,后来想起了外键必须使用同样的存储引擎,然后也在网上看了一下别人的分享,做一下整理.1.外键字段不能为该表的主键.2.外键字段参考字段必须为参考表的主键.3.外键必须使用同样的存储引擎.4.在非测试环境必须备份,不然GG,你就哭吧!!!...翻译 2019-04-18 11:19:14 · 917 阅读 · 0 评论 -
Failed to start MySQL Server,[Warning] InnoDB: Ignoring tablespace `xxxxx/cus_contract_face_tr
2019-08-01T03:12:04.698151Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 3 20...翻译 2019-08-01 12:05:30 · 905 阅读 · 0 评论