• 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 [COMPLETE TUTORIAL]How to setup a server!

#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 'accountManager = false
namelockManager = false
newPlayerChooseVoc = true
n' at line 1

plz help
 
This is the complete tutorial for you that know nothing about OTs / MYSQL on how to setup a own OT.
First check so you got all necessarily ports open in your router /firewall. Ports: (
7171/7172/80)

If you dont know how to open the ports you can use:
PortForward.com - Free Help Setting up Your Router or Firewall


After opening the ports you can check if they are open on:
Open Port Check Tool

After that you need to download xampp:

Here you got all xampp files.
Just download the latest version (installer).

84533826.jpg


Click in Apache and MYSQL it's absolutely necessarily !

After installing go to:
http://localhost/security/xamppsecurity.php

You can choose to save the password as a text file.
It's good to have a backup if you forget! So I suggest you save it there just in-case!

After choosing you password you need to restart Apache and Mysql.
You can do it two ways:

Go to your xampp folder and press the "Xampp restart".

Or you can use the xampp control panel which might be usefull in the future!
Hit the Stop buttons and then press the Start button which will appear after you have stopped.
18830275.jpg


After that go to:
http://localhost/phpmyadmin/

Then enter root as user name and your password under it.
After logging in there is one thing you need to do to make your server even more secure..
Do this:
30337189.jpg


After that you should download a server to start with..
There is many good servers.. but I recommend 0.2.4 which you can get by clicking here.
After downloading the server you will need to download the dll files here.

Once finished with downloading the dll files you will need to extract them into the server. (Only the dll files.. Not the whole map.)

Now you will need to go into the config.lua and change these things:
When you are done changing those things then you need to create a database!

So.. Go into
http://localhost/phpmyadmin/ again and login..
After logged in you can either create a new database or use the "test" database that's already there:

58608118.jpg


After you created you database you need to import "schema.mysql" or "forgottenserver.sql" depending on what server version you choose.

39716680.jpg


After that you are done! You got your own server!


[SHORT] How to create a GOD

First you will need to create a character and an account.
After that go to the "accounts" table and find your account and then change the account type to 5 and the group_id to 3.
After that you press "drive".

Then you got the "players" table and find you character and change the group_id to 3
and you can change the name to "GOD <nick>" if you want.


After that you've got a GOD!
Note: Your character has to be offline when you change this.

Feel free to add some reputation if you found this tutorial useful!
here is my problem: first time i tryed, i did DROP USER 'pma'@'localhost'; and it didnt work anything else like import db and shit, but this time i didnt do DROP USER 'pma'@'localhost'; and it worked. what can happen if i keep the mysql without doing that?
 
How i can create account i have forgotten version help me please i want to be God
 
Bumping this I guess...
The XAMPP suddenly works against me. In the beginning, it worked perfectly but now it won't start as I press the button.

Anyone with a solution? :)
 
Last edited:
i got an error it says
Fel
SQL-fråga:

SELECT `db_name` , `comment`
FROM `phpmyadmin`.`pma_column_info`
WHERE `column_name` = '(db_comment)'

MySQL sa:

#1142 - SELECT command denied to user ''@'localhost' for table 'pma_column_info'
 
i got an error
Fel
SQL-fråga:

SELECT `db_name` , `comment`
FROM `phpmyadmin`.`pma_column_info`
WHERE `column_name` = '(db_comment)'

MySQL sa:

#1142 - SELECT command denied to user ''@'localhost' for table 'pma_column_info'
 
After struggle got tfs to turn on, made config lua, created database, but engine i downloaded didnt come with this sql i have to import. Im using tfs 1.0 for tibia 10.41 could anyone help me? :eek: im learning so dont hate pls.

And it would be much better if screens worked, or person who created this tutorial didnt rely on screens as much because without them its alot guessing and trying to put pieces of other tutorials without screens together so you can figure things out.
 
After struggle got tfs to turn on, made config lua, created database, but engine i downloaded didnt come with this sql i have to import. Im using tfs 1.0 for tibia 10.41 could anyone help me? :eek: im learning so dont hate pls.

And it would be much better if screens worked, or person who created this tutorial didnt rely on screens as much because without them its alot guessing and trying to put pieces of other tutorials without screens together so you can figure things out.

This tutorial is very old, check this new one: http://otland.net/threads/video-tut...ing-ot-server-website-and-shop-system.166818/
 
I'm currently following your tutorial and im currently at this step : "Then enter root as user name and your password under it.
After logging in there is one thing you need to do to make your server even more secure..
Do this:
"
But i can't see that or any other picture telling me where to go. Great tutorial anyways!
 
Back
Top