mysqldude
Error codes › 1005

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)
MySQLMariaDB
SymbolER_CANT_CREATE_TABLEER_CANT_CREATE_TABLE
SQLSTATEHY000HY000
TypeServer errorServer error
Versionsevery release since 5.0 activeevery release since 5.5 active
How the message changed between versions
MySQL fromSymbolMessage
5.0.96ER_CANT_CREATE_TABLECan't create table '%-.200s' (errno: %d)
8.0.11ER_CANT_CREATE_TABLECan't create table '%-.200s' (errno: %d - %s)
MariaDB fromSymbolMessage
5.5.68ER_CANT_CREATE_TABLECan't create table '%-.200s' (errno: %d)
10.0.38ER_CANT_CREATE_TABLECan't create table %`s.%`s (errno: %M)
11.8.10ER_CANT_CREATE_TABLECan't create table %sQ.%sQ (errno: %iE)