1

imagine i want to save more information about each user in wordpress . i create a table named users_information, so i should create a user_id column which is a foreign key for Wordpress wp_users table .

but in phpmyadmin tool when I want to create this relation, I get this error:

MySQL said:
#1215 - Cannot add foreign key constraint 

I have tried many different ways but still I'm stuck. you should also know that user_id is index and . my problem is wordpress.
please help me. how can I fix this ?

Mehrdad Pedramfar
  • 10,941
  • 4
  • 38
  • 59

1 Answers1

0

You have to make sure you're using InnoDb as table format

lexplatt
  • 36
  • 4