Creating foreign keys in phpmyadmin?
Posted by: rpjd (37.228.242.---)
Date: September 27, 2017 04:06AM

I wanted to create a table in phpmyadmin with two columns, each column being a foreign key to primary keys in others tables. In the Structure tab of phpmyadmin, there are only Primary and Unique indexes available to choose from that I can see/find. As I could not find a Foreign Key option in phpmyadmin, I created the table in MySQL console. If there is no Foreign Key index available in the Structure tab, will it be introduced?

Options: ReplyQuote
Re: Creating foreign keys in phpmyadmin?
Posted by: Otomatic (Moderator)
Date: September 27, 2017 09:37AM

Hi,

You have to create table with Storage engine = InnoDB

This question is not On Topic
This site is for people having issues getting WAMPServer running and not a general HOW DO I site for everything web related.

For this kind of questions you should consult the relevant documentation, in this case, that of MySQL.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.