Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do "Internal Relations" do in phpMyAdmin for MyISAM tables?

In phpMyAdmin v2.8.2.4 for MyISAM tables, the "Relation View" appears under the Structure tab. It shows a list of Internal Relations. But what do these do, given that MyISAM does not support foreign key constraints or relational integrity?

By phpMyAdmin version 3.2.0.1 this page ("Relation View") no longer appears for MyISAM tables. So does this mean that it wasn't doing anything in the first place?

Any explanations much appreciated. Justin

like image 577
JS London Avatar asked Nov 12 '09 12:11

JS London


People also ask

How does phpMyAdmin determine relations?

Click on a table within your database and choose the Operations tab. Make sure that the storage engine is set to use InnoDB and save your changes. Now, go back to your table view and click the Structure tab. Depending on your version of phpMyAdmin you should see a link titled Relation view below the table structure.


1 Answers

Foreign keys in MyISAM are for advisory purposes only. You can look at them to see where the referential integrity would be, if there were any. It's easier to understand the schema that way than to guess relations by looking at the indexes created as a side-effect.

I don't know why it'd disappear in phpMyAdmin, unless it's a config issue (I believe the view can be disabled)?

like image 50
bobince Avatar answered Nov 15 '22 06:11

bobince