
数据库
文章平均质量分 55
数据库学习笔记、随笔
叶青古
不要温和地走进那个良夜,老年应当在日暮时燃烧咆哮;怒斥,怒斥光明的消逝。
展开
-
linux下mysql导出查询结果+ERROR 1290 (HY000) --secure-file-priv
目录一.错误分析二.解决办法博主尝试将数据库查询结果导出到原目录下test.txt。导出命令格式:mysql> select * from table1 where id='001' into outfile 'test.txt';错误信息:ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement一.错误分析原创 2021-05-12 00:07:12 · 479 阅读 · 0 评论 -
Mysql——ERROR 1452:Cannot add or update a child row a foreign key constraint fails
目录一.错误信息二.分析问题三.解决问题四.总结问题ERROR 1452: 1452: Cannot add or update a child row: a foreign key constraint fails一.错误信息今天学习mysql表格相关操作,向表格中添加数据时遇到了如下问题二.分析问题经过分析错误信息可得,test_table_em1表中的name字段以test_table_em2中name字段为外键,但是插入name为Tiber的信息后报错。然后我们查看test_table_原创 2021-03-22 00:03:46 · 957 阅读 · 2 评论