If you desire to utilizephpMyAdminto set up relations you contain to perform 2 things. Initial of all you contain to describe an index on the foreign key column in the submitting table (so foo_bar.foo_id, in your crate).
add foreign key from another database, foreign key different database, cross-database foreign key references are not supported, add foreign key for existing table, multiple foreign key in sql, add foreign key to existing table