Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

fix when i tried to import a table in mysql it just returns me ' ERROR 1215 (HY000): Cannot add foreign key constraint "

Handsome Hamerkop answered on March 26, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Syntax error or access violation: 1072 Key column 'user_id' doesn't exist in table (SQL: alter table `groups` add constraint `groups_user_id_foreign` foreign key (`user_id`) references `users` (`id`))
  • SET FOREIGN_KEY_CHECKS = ON; MySQL said: Documentation #2006 - MySQL server has gone away
  • SQLSTATE[23000]: Integrity constraint violation: 19 FOREIGN KEY constraint failed
  • General error: 1215 Cannot add foreign key constraint laravel
  • SQLSTATE[23000]: Integrity constraint violation: 4025 CONSTRAINT `categories.name` failed for `apolonia_db`.`categories`
  • SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint
  • error code 1215 cannot add foreign key constraint
  • Uncaught mysqli_sql_exception: Incorrect table definition; there can be only one auto column and it must be defined as a key in
  • sqlstate[hy000]: general error: 1005 can't create table (errno: 150 "foreign key constraint is incorrectly formed")
  • SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`apolonia_db`.`shops`, CONSTRAINT `shops_parent_pharmacy_id_foreign` FOREIGN KEY (`parent_pharmacy_id`) REFERENCES `shops` (`id`))
  • SQLSTATE[HY000]: General error: 1005 Can't create table ``.`labels` (errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter table `labels` add constraint
  • foreign key constraint failed
  • foreign key constraint failed

  • fix when i tried to import a table in mysql it just returns me ' ERROR 1215 (HY000): Cannot add foreign key constraint "

    0
    Popularity 1/10 Helpfulness 1/10 Language sql
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Mar 26 2023
    Handsome Hamerkop
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.