• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Mysql problems..

Nefs

Nefs Staff
Joined
Jul 15, 2009
Messages
521
Reaction score
7
Location
Barcelona (Spain)
Hello, i got a problems on my ot serv... my console give me an error while saving a players, because dont have the table accounts_viplist... and when i go to create this table the mysql give me error...

#1005 - Can't create table 'mydatabase.account_viplist' (errno: 150)

why i cannot create that table?
 

Attachments

  • problem console.jpg
    problem console.jpg
    106 KB · Views: 27 · VirusTotal
Last edited:
This ain't the onliest problem, perhaps go look any tutorial "how to create mysql table" just google.. and then before you can enter data row into the table u need to define what kind of data etc.. but i guess that you know better than me, since i do not host any server and dont forget that the table needs to have a index on the referencing column ;)

Ps > this < could be helpfull..

 
Last edited:
@i know english + o -, bu i dont understand the Ps > this < could be helpfull..
these things cannot help me, dont create the table

i attached an image of my problems
 
Exec
PHP:
DROP TABLE IF EXISTS `player_viplist`;
For TFS 0.2:
PHP:
CREATE TABLE `player_viplist`
(
	`player_id` INT NOT NULL COMMENT 'id of player whose viplist entry it is',
	`vip_id` INT NOT NULL COMMENT 'id of target player of viplist entry',
	FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE,
	FOREIGN KEY (`vip_id`) REFERENCES `players`(`id`) ON DELETE CASCADE
) ENGINE = InnoDB;
TFS 0.3:
PHP:
CREATE TABLE `player_viplist`
(
	`player_id` INT NOT NULL,
	`vip_id` INT NOT NULL,
	KEY (`player_id`), KEY (`vip_id`), UNIQUE (`player_id`, `vip_id`),
	FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE,
	FOREIGN KEY (`vip_id`) REFERENCES `players`(`id`) ON DELETE CASCADE
) ENGINE = InnoDB;
 
the same problem with that

#1005 - Can't create table 'alzeria.player_viplist' (errno: 150)

Code:
CREATE TABLE `player_viplist` (
`player_id` INT NOT NULL ,
`vip_id` INT NOT NULL ,
KEY ( `player_id` ) ,
KEY ( `vip_id` ) ,
UNIQUE (
`player_id` ,
`vip_id` 
),
FOREIGN KEY ( `player_id` ) REFERENCES `players` ( `id` ) ON DELETE CASCADE ,
FOREIGN KEY ( `vip_id` ) REFERENCES `players` ( `id` ) ON DELETE CASCADE 
) ENGINE = InnoDB;
 
Back
Top