• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Query errors help please :P

MadMOOK

Hoo
Joined
Apr 20, 2011
Messages
802
Reaction score
44
I use 0.3.7 crying damson 10.10, i run it on the same database as my 0.3.7 8.60.
1. How do i remove them table errors?
2. How do i fix motd and players record not loading?

::Updated New problem! :p

errror.png
 
Last edited:
Try those:

Code:
CREATE TABLE `market_history`
(
    `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    `player_id` int(11) NOT NULL,
    `sale` tinyint(1) NOT NULL DEFAULT '0',
    `itemtype` int(10) unsigned NOT NULL,
    `amount` smallint(5) unsigned NOT NULL,
    `price` int(10) unsigned NOT NULL DEFAULT '0',
    `expires_at` bigint(20) unsigned NOT NULL,
    `inserted` bigint(20) unsigned NOT NULL,
    `state` tinyint(1) unsigned NOT NULL,
    PRIMARY KEY (`id`),
    KEY `player_id` (`player_id`,`sale`),
    FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
);

CREATE TABLE `market_offers`
(
    `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    `player_id` int(11) NOT NULL,
    `sale` tinyint(1) NOT NULL DEFAULT '0',
    `itemtype` int(10) unsigned NOT NULL,
    `amount` smallint(5) unsigned NOT NULL,
    `created` bigint(20) unsigned NOT NULL,
    `anonymous` tinyint(1) NOT NULL DEFAULT '0',
    `price` int(10) unsigned NOT NULL DEFAULT '0',
    PRIMARY KEY (`id`),
    KEY `sale` (`sale`,`itemtype`),
    KEY `created` (`created`),
    FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
);
 
errror.png
Code:
Error

SQL query:

CREATE TABLE `market_history` (
`id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
`player_id` int( 11 ) NOT NULL ,
`sale` tinyint( 1 ) NOT NULL DEFAULT '0',
`itemtype` int( 10 ) unsigned NOT NULL ,
`amount` smallint( 5 ) unsigned NOT NULL ,
`price` int( 10 ) unsigned NOT NULL DEFAULT '0',
`expires_at` bigint( 20 ) unsigned NOT NULL ,
`inserted` bigint( 20 ) unsigned NOT NULL ,
`state` tinyint( 1 ) unsigned NOT NULL ,
PRIMARY KEY ( `id` ) ,
KEY `player_id` ( `player_id` , `sale` ) ,
FOREIGN KEY ( `player_id` ) REFERENCES `players` ( `id` ) ON DELETE CASCADE
);

MySQL said: Documentation
#1050 - Table 'market_history' already exists
 
Stop doubleposting.
If you now look at the last error and think about how you fixed that you can also fix the current one.
Just see what changed and use the brain.
 
just only need enter SQL in phpmyadmin
and put my query
-.- the problem you need read men
the problem is why not have colum world_id
added in table market_offers
 
Back
Top