当前位置:网站首页>ERROR 1215 (HY000): Cannot add foreign key constraint
ERROR 1215 (HY000): Cannot add foreign key constraint
2022-06-11 06:10:00 【Glutinous rice balls】
The cause of this error may be :
A Table main construction and B Table foreign key data type 、 Inconsistent constraints .
The storage engines of the two data tables are inconsistent .
The character sets of the two tables are inconsistent .
...
My mistake :

be under construction B Cannot add foreign key while table .

reason : What I use MySQL The storage engine for version data tables is InnoDB, I changed the storage engine of the main table to MyISAM.

solve : Just change it back .

The table was built successfully .
边栏推荐
- Sword finger offer 32: print binary tree from top to bottom
- Altiumdesigner2020 import 3D body SolidWorks 3D model
- Summarize the five most common BlockingQueue features
- Dichotomy find template
- 亚马逊、速卖通、Lazada、虾皮平台在用911+VM的环境可以进行产号、养号、补单等操作吗?
- Servlet
- Principle of copyonwritearraylist copy on write
- Simple knapsack problem
- SQLI_ LIBS range construction and 1-10get injection practice
- What do you need to know about Amazon evaluation?
猜你喜欢

Use com youth. banner. Solution to the inflateexception reported by the banner plug-in
![[must see for game development] 3-step configuration p4ignore + wonderful Q & A analysis (reprinted from user articles)](/img/4c/42933ac0fde18798ed74a23279c826.jpg)
[must see for game development] 3-step configuration p4ignore + wonderful Q & A analysis (reprinted from user articles)
![Chapter 2 of machine learning [series] logistic regression model](/img/8f/b4c302c0309f5c91c7a40e682f9269.jpg)
Chapter 2 of machine learning [series] logistic regression model

Pycharm usage experience

FPGA interview notes (IV) -- sequence detector, gray code in cross clock domain, ping-pong operation, static and dynamic loss reduction, fixed-point lossless error, recovery time and removal time

Sqli-labs less-01

Record the first data preprocessing process

Write a list with kotlin

A collection of problems on improving working frequency and reducing power consumption in FPGA design

Topic collection of FIFO minimum depth calculation
随机推荐
Sqli-labs less-01
Principle of copyonwritearraylist copy on write
Basic use of BufferedReader and bufferedwriter
This is probably the most comprehensive project about Twitter information crawler search on the Chinese Internet
Super (subclass)__ init__ And parent class__ init__ ()
This point of arrow function
The meaning in the status column displayed by PS aux command
Set the IP address using batch
Record the first data preprocessing process
Installing and using sublist3r in Kali
[daily exercises] merge two ordered arrays
Compliance management 101: processes, planning and challenges
Review Servlet
Chapter 1 of machine learning [series] linear regression model
Installing MySQL for Linux
[metadata]linkedin datahub
How to use the markdown editor
What is a planning BOM?
Use of constructors
Box model