You can do it the old fashioned way… with an SQL statement that looks something like this
ALTER TABLE table_name ADD CONSTRAINT fk_foreign_key_name FOREIGN KEY (foreign_key_name) REFERENCES target_table(target_key_name);
This assumes the keys already exist in the relevant table
Related Posts:
- importing a CSV into phpmyadmin
- Would manually deleting the dumping data fix a “#1062 – Duplicate entry ‘1’ for key ‘PRIMARY'” phpMyAdmin error?
- phpMyAdmin error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- Error establishing a database connection (Set-up locally)
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- How to use mysqli_query() in PHP?
- How to log in to phpMyAdmin with WAMP, what is the username and password?
- How do I restore a dump file from mysqldump?
- PHP Connection failed: SQLSTATE[HY000] [2002] Connection refused
- How do I quickly rename a MySQL database (change schema name)?
- PHP Connection failed: SQLSTATE[HY000] [2002] Connection refused
- Authentication plugin ‘caching_sha2_password’ cannot be loaded
- Setting up foreign keys in phpMyAdmin?
- PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP
- Create a new database with MySQL Workbench
- what does “/index.php?admin/admin_dashboard” in my url mean
- phpMyAdmin: secret passphrase?
- How to get size of mysql database?
- Forbidden :You don’t have permission to access /phpmyadmin on this server
- 1052: Column ‘id’ in field list is ambiguous
- 1052: Column ‘id’ in field list is ambiguous
- difference between primary key and unique key
- Creating a search form in PHP to search a database?
- Fix Access denied for user ‘root’@’localhost’ for phpMyAdmin
- #1045 – Access denied for user ‘root’@’localhost’ (using password: YES)
- MySQL Error #1133 – Can’t find any matching row in the user table
- How can I prevent SQL injection in PHP?
- phpmyadmin #1045 Cannot log in to the MySQL server. after installing mysql command line client
- How to check if mysql database exists
- Is there a Profiler equivalent for MySql?
- How to do a batch insert in MySQL
- If variable equals value php [duplicate]
- MySQL: Cloning a MySQL database on the same MySql instance
- PHP date() format when inserting into datetime in MySQL
- MySQL Daemon Failed to Start – centos 6
- How get value from URL
- Error: Duplicate entry ‘0’ for key ‘PRIMARY’
- MySQL said: Documentation #1045 – Access denied for user ‘root’@’localhost’ (using password: NO)
- MySQL – count total number of rows in php
- Data is not constantly loading from custom wordpress table
- How to return number of found rows from SELECT query
- What’s a good strategy for planning WordPress DB growth?
- How to properly insert data into custom table via plugin
- Check if post of title already exists
- $wpdb->delete column values IN ARRAY()?
- What specific database privileges does WordPress need?
- “#1067 – Invalid default value for ‘post_date'” when trying to reset AI after backup
- How To Make Connection To WordPress Data Base In A Plugin?
- Changing user_nicename
- Does WordPress cache get_user_meta() results?
- WordPress will not operate correctly
- How to Join two tables from separate databases within WordPress
- error importing localhost export file to server
- How to sort results from a custom database table
- How can I call a row of user specific data from a custom table added to the WP Database
- How to copy post titles to post slug in phpmyadmin
- Delete all post meta except featured image
- Export only pages and posts with mysql dump
- How to merge local and live databases?
- How to track a users progress through pages by inserting data into WordPress Database?
- Import 10,000 Users into WordPress WITH a specific ID for each user
- How to do a MySQL dump from production site without using a search and replace script for local development?
- WP database error for comments_popup_link()
- if statement on database query
- Unusable menus and “Illegal widget setting ID: nav_menu_item[]” error
- No wp-config.php file on local install of wordpress – site still displays
- Set Display Name to first and last name (phpmyadmin SQL Query)
- How Do I Merge Categories With phpMyAdmin
- Recent comments from my blogs only
- Emojis getting converted to “?”
- How to migrate the posts from an old custom legacy blog to a new WordPress website?
- #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- How to Create a Admin User for A WordPress Site via MySQL (PHPMyAdmin)?
- Different database query in function.php using mysqli
- Delete all post meta except featured image Using SQL
- How to write one comment and publish on every post using database or plugin?
- SQL error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’ [closed]
- How to create and work with custom data / tables (i.e., for arbitrary data)?
- Adding custom tables to WordPress
- phpMyAdmin displays error when importing database
- Set meta_key and meta_value for all registered user in wordpress using sql query [closed]
- Can’t find my wordpress DB in phpmyadmin
- Create WP_Query to search for posts by their categories or their parent/child categories
- WordPress database import: Row size too large
- WordPress not reflecting changed of the database
- How to display data from custom table in wordpress phpmyadmin
- How can I save unique user data on my site? [closed]
- Is it possible to create a wordpress database with php code?
- Update results, Before deleting the related category [closed]
- How to import a custom MySQL DB table into a WordPress custom post type
- Will changing the folder name two directories above a fresh wordpress installation break the site?
- Backing up and restoring multiple sites efficiently
- database sent to a JSON file
- $wpdb to insert html form information
- inserting a post from an extern php file but post content doesn’t show on wp site
- Using custom tables for old posts
- Better ads plugin has 500.000 entries in wp_postmeta
- Not connecting to database in file with multiple MySQL connections
- Changing root password in PHPMyAdmin for WordPress Database when going live