How to define a foreign key using phpMyAdmin GUI in mySQL

dancingbush :

I am creating a table using the GUI in phpMyAdmin mySQL hosted on an Apache web server (XAMMP).

How do I define a column as a foreign key and where do I insert the reference to the corresponding primary key? There is a drop down option for Primary Key but I don't see any such option for a foreign key.

The options for each column are as below Thanks

nbk :

Find the Relation view see picture and there you can define our foreign keys.

relation view

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=386684&siteId=1