MySQL “ERROR 1005 (HY000): Can’t create table ‘foo.#sql-12c_4’ (errno: 150)” May 10, 2023 by Tarik You should make car_id a primary key in cars.