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

MySQL Database

Ahead

New Member
Joined
Dec 27, 2013
Messages
165
Reaction score
2
I found this error when i import my server database.sql.

Code:
Error
consulta SQL:

INSERT INTO [server_config](

[config],
[value]
)
VALUES(
'db_version', 38
);



MySQL ha dicho:

#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 '[server_config] ([config], [value]) VALUES ('db_version', 38)' at line 1
 
Last edited:
If i try to import this:

https://github.com/otland/forgottenserver/blob/master/schema.sql

It works, but everything is empty (obviously, it is a free and public scheme). So i need to import mine but i do not know what can cause the #1064 error here.

And it seems that the problem comes from here (inside my .sql file):

Code:
-- Table: server_config
CREATE TABLE server_config (
    config VARCHAR( 35 )   NOT NULL
                           DEFAULT '',
    value  VARCHAR( 255 )  NOT NULL
                           DEFAULT '',
    UNIQUE ( config )
);

INSERT INTO [server_config] ([config], [value]) VALUES ('db_version', 38);
INSERT INTO [server_config] ([config], [value]) VALUES ('encryption', 2);

I am trying to give you as much as posibles details to solve it better.

QUESTION: My server is almost brand-new. I mean, i have just tested map things inside, so i have not created accounts neither touched another table. So, it would mean that should i import the scheme which works for me (although it is empty)??????

Thank you.
 
Last edited:
Are you saying that although it lets me import the scheme, it would produce me an error then?
I am saying that once you run your server you will get problems regarding queries and errors about missing columns and what not because the TFS 1.0 schema is different compared to the 0.3.7 schema
 
Back
Top