• 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 How to setup a MySQL Database (screenshots included) - Last update: 16/7/2009

RE: How to Setup a MySQL Database (Updated and Detailed Guide)

Check the second part of the tutorial,if errors appear
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

great guide man saved me alot of trouble
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

Very nice
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

i get stuck at the cmd part. I type C:xampp_realmysql -u root otserv -p < triggers.sql and they write that C:xampp_realmysql is not recognised as an internal or external command, openable program or batch file and i already cd-ed to the folder where i have the otserv
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

Chromium said:
i get stuck at the cmd part. I type C:xampp_realmysql -u root otserv -p < triggers.sql and they write that C:xampp_realmysql is not recognised as an internal or external command, openable program or batch file and i already cd-ed to the folder where i have the otserv

The second part of the tutorial was written by talaturen,i'm not familliar with the triggers thing
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

ok thanks for the guide anyways
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

Good one, gratz :p


need some help in some steps but okay i guess im going good
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

Good one, gratz :p


need some help in some steps but okay i guess im going good
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

Nevermind any longer, I solved it myself :D
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

help..

Error
SQL query:

DELIMITER | CREATE TRIGGER `ondelete_accounts` BEFORE DELETE ON `accounts` FOR EACH ROW BEGIN DELETE FROM `bans` WHERE `account` = OLD.`id` ;



MySQL said:

#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 'DELIMITER |

CREATE TRIGGER `ondelete_accounts`
BEFORE DELETE
ON `accounts`
FOR ' at line 1
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

how can I edit accounts and stuff?
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

Seems like you didn't read mysql-help or IMPORTANT.txt, you should NOT use phpMyAdmin to import the database structure.
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

Talaturen said:
Seems like you didn't read mysql-help or IMPORTANT.txt, you should NOT use phpMyAdmin to import the database structure.

It's the third step of this tutorial where you import forgottenserver.sql. I'm having the same problem tho, but I can run the server later on without any problems (beside the versions items.otb that I have to put in and the houses loading error which I can fix later on :p)
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

A problem.
When i tried to Import forgottenserver.sql ( as you said ) and i clicked "Go", then this shows:

Error

SQL query:

DROP TRIGGER IF EXISTS `oncreate_players` ;

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 'IF EXISTS `oncreate_players`' at line 1


what's wrong? can't understand that ( i'm new on forgotten )
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

Xine said:
how can I edit accounts and stuff?


I'm wondering about the same :rolleyes:


Nevermind! Figured it out :cool:
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

Thank u!
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

Nice work!
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

Great tutorial this helped me much with triggering, never understanded that good thanks.
 
RE: How to Setup a MySQL Database (Updated and Detailed Guide)

Finally a tutorial normal people can understand xD
 
Back
Top