mySQL

Ask for help regarding any technical issue or report any bug or OS independent issues.


Post Reply
Yuri20
Newly Registered User
Posts: 8
Joined: 16 Oct 2011, 17:46

mySQL

Post by Yuri20 »

Ok, i have another question :) I'd like to make my server based on mySQL (it's more comfortable and it have many of advantages), so i read that i must import table schemas into database, but i can't find this file (createtables.sql or something like that)! I was doing everything what is described there:

http://wiki.themanaworld.org/index.php/How_to_Develop

and here:
http://wiki.themanaworld.org/index.php/ ... stallation

So i can't understand why that file is missing... And in which configuration file i can switch txt server into mysql server?
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Re: mySQL

Post by Crush »

The first article is about the current server (tmwAthena), the second one about Manaserv (the new server in development). The guides are about completely different applications.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Yuri20
Newly Registered User
Posts: 8
Joined: 16 Oct 2011, 17:46

Re: mySQL

Post by Yuri20 »

So could you give me guide for creating sql game server?
Yuri20
Newly Registered User
Posts: 8
Joined: 16 Oct 2011, 17:46

Re: mySQL

Post by Yuri20 »

Ok, i am now compiling test server. I have already completed file manaserv.xml (with configuration mysql) and i uncommented mysql part of this file. While compilation with cmake i used:

Code: Select all

ccmake
To set mysql, and unset sqlite, and while configuring cmake is returning:
-- MySQL not found.
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
MYSQL_INCLUDE_DIR (ADVANCED)
used as include directory in directory /home/jerzy/Pulpit/manaserv/src
MYSQL_LIBRARIES (ADVANCED)
linked by target "manaserv-account" in directory /home/jerzy/Pulpit/manaserv/src
linked by target "manaserv-game" in directory /home/jerzy/Pulpit/manaserv/src
Why? I installed all needed packages: mysql and phpmyadmin (phpmyadmin needs mysql).
User avatar
Bjørn
Manasource
Manasource
Posts: 1474
Joined: 09 Dec 2004, 18:50
Location: North Rhine-Westphalia, Germany
Contact:

Re: mySQL

Post by Bjørn »

Yuri20 wrote:
-- MySQL not found.
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
MYSQL_INCLUDE_DIR (ADVANCED)
used as include directory in directory /home/jerzy/Pulpit/manaserv/src
MYSQL_LIBRARIES (ADVANCED)
linked by target "manaserv-account" in directory /home/jerzy/Pulpit/manaserv/src
linked by target "manaserv-game" in directory /home/jerzy/Pulpit/manaserv/src
Why? I installed all needed packages: mysql and phpmyadmin (phpmyadmin needs mysql).
Probably because installing mysql is not the same as installing the files required to compile against the mysql client library. You'll want to make sure you've got libmysqlclient-dev installed.

I've just changed the README file to mention this library.
User avatar
i
TMW Adviser
TMW Adviser
Posts: 1114
Joined: 07 Mar 2005, 17:29
Location: Poland
Contact:

Re: mySQL

Post by i »

Bjørn wrote:I've just changed the README file to mention this library.
Indeed. That may help ;)
Yuri20
Newly Registered User
Posts: 8
Joined: 16 Oct 2011, 17:46

Re: mySQL

Post by Yuri20 »

Ok, everything is okay except...:
[20:06:37] [INF] Connection to mySQL was sucessfull.
[20:06:37] [ERR] Database version is not supported. Needed version: '16', current version: '14'
[20:06:37] [FTL] Error opening the database: Database version is not supported. Needed version: '16', current version: '14'
WTF is mysql version 16? The newest I can see here: http://www.mysql.com/

Is 5.5, so i don't understand what is 16...
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

Re: mySQL

Post by o11c »

From my understanding, this number is just a version used by the Mana project, since they're not yet stable, so they need to keep changing the table format.
Former programmer for the TMWA server.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Re: mySQL

Post by Crush »

The database version number is the version number of the schema. The directory src/sql should include update scripts to upgrade the schema to the newest state. When there are not, beat the guys on IRC.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Yuri20
Newly Registered User
Posts: 8
Joined: 16 Oct 2011, 17:46

Re: mySQL

Post by Yuri20 »

Crush wrote:The database version number is the version number of the schema. The directory src/sql should include update scripts to upgrade the schema to the newest state. When there are not, beat the guys on IRC.
It seems to I will have to do it. Anyway, Bjorn or someone should add here:

https://github.com/mana/manaserv/tree/m ... ql/updates

update from 14 to 15. There's only 13->14 and 15->16.
User avatar
Bjørn
Manasource
Manasource
Posts: 1474
Joined: 09 Dec 2004, 18:50
Location: North Rhine-Westphalia, Germany
Contact:

Re: mySQL

Post by Bjørn »

Yuri20 wrote:It seems to I will have to do it. Anyway, Bjorn or someone should add here:

https://github.com/mana/manaserv/tree/m ... ql/updates

update from 14 to 15. There's only 13->14 and 15->16.
Version 15 was somebody's local version that was skipped by accident in the main repository. To avoid confusion, I've renamed the 15->16 update script to 14->16:

https://github.com/mana/manaserv/commit ... 8b798fa7ab
Post Reply