MySQL & MariaDB error 1005 ER_CANT_CREATE_TABLE
MySQLCan't create table '…' (errno: … - …)
MariaDBCan't create table ….… (errno: %iE)
Example from our test runs: Can't create table `t_0`.`child` (errno: 150 "Foreign key constraint is incorrectly formed") (10.6.28)
How the message changed between versions