![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
aiworenyanzhousuanfa
生于忧患,死于安乐
展开
-
MySQL无法创建外键 MySQL数据库修改数据表类型(引擎)的方法
原因可能是:其中一个或者两个表是MyISAM引擎的表,若想要使用外键约束,表必须是InnoDB引擎(实际上,如果两个表都是MyISAM 引擎的,这个错误根本不会发生,但也不会产生外键,只会建立索引)你需要检查表的引擎类型查看数据表引擎状态:1:show table status from my_db where name='my_foreign';my_db为数据库名,my_for...原创 2020-04-12 15:03:17 · 371 阅读 · 0 评论 -
导出提示Couldn't execute 'SELECT COLUMN_NAME,JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"')
mysqldump导出提示:Couldn't execute 'SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"') FROM information_schema.COLUMN_STATISTICS ...原创 2020-04-08 11:32:19 · 2996 阅读 · 1 评论