How to specify a foreign key in phpmyadmin?

How to specify a foreign key in phpmyAdmin, just write the primary key of another table


Answer 1

Tables must be InnoDB.
In the structure of the table there is a link “Relationships” at the bottom. Everything is there