How do I display content for foreign keys in phpmyadmin

phpMyAdmin has a function for this, but you must be using the InnoDB table type. You must also have pmadb configured.

  1. Select the table that contains the foreign key (child).
  2. Click the "Structure" tab.
  3. Click "Relation view".
  4. Under the foreign key constraints, click the "Choose column to display" drop down and make a choice.

The column value will now be shown next to the id. It will also be shown when hovering over the foreign key value after making a selection.

For anyone having trouble getting this setup, please see the #relation-view documentation which tells you exactly how to configure it with screenshots.


In addition to what @EternalHour says you also need to check the radio button under view options enter image description here

that says "Relational display column" if you want the value to be displayed.

enter image description here

If not checked you will only see the Foreign Key value when you hover that specific id.

Tags:

Php

Phpmyadmin