• 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!

Solved TFS 0.4 - MySql Error

pierroth

Mar Co.
Joined
Sep 11, 2008
Messages
343
Reaction score
10
Location
Mexico - California
Hey everyone,

I have an error when I import schema.sql into database.

This is the error I get

Code:
Error

SQL query:

EATE TABLE `groups` (
    `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
    `name` VARCHAR(255) NOT NULL COMMENT 'group name',

    `flags` BIGINT UNSIGNED NOT NULL DEFAULT 0,
    `access` INT NOT NULL DEFAULT 0,
    `violation` INT NOT NULL DEFAULT 0,
    `maxdepotitems` INT NOT NULL,
    `maxviplist` INT NOT NULL,

    PRIMARY KEY (`id`)
) ENGINE = InnoDB;

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'EATE TABLE `groups` (
    `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
    `name` VARC' at line 1

Could anyone help me get past this error to upload the database please? :)

I'm using Windows, Uniform Server program for apache and sql. The same thing happened when using XAMPP.

Thank you!
 
It says "EATE" instead of "CREATE" try this
Code:
CREATE TABLE `groups` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`name` VARCHAR(255) NOT NULL COMMENT 'group name',

`flags` BIGINT UNSIGNED NOT NULL DEFAULT 0,
`access` INT NOT NULL DEFAULT 0,
`violation` INT NOT NULL DEFAULT 0,
`maxdepotitems` INT NOT NULL,
`maxviplist` INT NOT NULL,

PRIMARY KEY (`id`)
) ENGINE = InnoDB;
 
Thank you!

But how can I fix it? is it in the schema.mysql, the error shows up when I import the .sql into the database. Anyway to fix it? :)

Thank you again!
Open the file in notepad++ and find
Code:
EATE TABLE `groups` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`name` VARCHAR(255) NOT NULL COMMENT 'group name',

`flags` BIGINT UNSIGNED NOT NULL DEFAULT 0,
`access` INT NOT NULL DEFAULT 0,
`violation` INT NOT NULL DEFAULT 0,
`maxdepotitems` INT NOT NULL,
`maxviplist` INT NOT NULL,

PRIMARY KEY (`id`)
) ENGINE = InnoDB;

And replace it with
Code:
CREATE TABLE `groups` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`name` VARCHAR(255) NOT NULL COMMENT 'group name',

`flags` BIGINT UNSIGNED NOT NULL DEFAULT 0,
`access` INT NOT NULL DEFAULT 0,
`violation` INT NOT NULL DEFAULT 0,
`maxdepotitems` INT NOT NULL,
`maxviplist` INT NOT NULL,

PRIMARY KEY (`id`)
) ENGINE = InnoDB;
 
Back
Top