You get a bonus - 1 coin for daily activity. Now you have 1 coin

MySQL Error: Can't Create Table '...' (errno: 121)

Practice




mysql error Cant create table ... (errno: 121)

when creating the table

CREATE TABLE likes_users (
id int(11) NOT NULL AUTO_INCREMENT,
uid int(11) NOT NULL,
tid int(11) NOT NULL,
type int(11) NOT NULL,
PRIMARY KEY (id),
INDEX uid (uid),
CONSTRAINT likes_users_ibfk_1 FOREIGN KEY (uid)
REFERENCES lily_user (uid) ON DELETE RESTRICT ON UPDATE RESTRICT
)

ENGINE = INNODB
AUTO_INCREMENT = 288
AVG_ROW_LENGTH = 237
CHARACTER SET utf8
COLLATE utf8_general_ci;

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Databases - MySql (Maria DB)"

Terms: Databases - MySql (Maria DB)