Jump to content

error message


usemysql

Recommended Posts

    I was trying to create a table using the statment below (I am using mysql version of 5.0.)but I instead I got this error message does anybody know why?please help...

 

 

mysql> create table dvd

    -> (dvdid int not null auto_increment primary key,

    -> title varchar(40) not null,

    -> rls YEAR not null,

    -> qnty int not null,

    -> TypeID varchar(4) not null,

    -> FormatID varchar(4) not null,

    -> RateID varchar(4) not null,

    -> StudioID varchar(4) not null,

    -> StatID varchar(4) not null,

    -> foreign key(TypeID) references movtype (TypeID),

    -> foreign key(FormatID) references format (FormatID),

    -> foreign key(RateID) references rating (RateID),

    -> foreign key(StudioID) references studio (StudioID),

    -> foreign key(StatID) references status (StatID)

    -> )ENGINE = INNODB;

ERROR 1005 (HY000): Can't create table '.\dvd_rentals\dvd.frm' (errno: 150)

mysql>

Link to comment
https://forums.phpfreaks.com/topic/56425-error-message/
Share on other sites

1005 (ER_CANT_CREATE_TABLE)

 

Cannot create table. If the error message refers to errno 150, table creation failed because a foreign key constraint was not correctly formed. If the error message refers to errno -1, table creation probably failed because the table includes a column name that matched the name of an internal InnoDB table.

Link to comment
https://forums.phpfreaks.com/topic/56425-error-message/#findComment-278903
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.