Select the database where you want to add foreign keys
Select the tables one by one (this article uses user as an example)
Select [Operation]
#Modify the storage engine in the table options (make sure the storage engine of the table creating the foreign key is the same)
Select the table to which you want to add a foreign key
Select the structure
Select the associated view
Add foreign key
Click Save
## Recommended related article tutorials:The above is the detailed content of How to create foreign key constraints in phpmyadmin. For more information, please follow other related articles on the PHP Chinese website!