Server SQL Errors!

Status
Not open for further replies.
Junior Spellweaver
Joined
Aug 14, 2008
Messages
146
Reaction score
12
Hey guys, im getting this awesomely irritating error. here it is.

Madelinesz - Server SQL Errors! - RaGEZONE Forums


Another error i get is, that the SQL can't be connected. ): Whats wrong with my files? Here are my configs.

LOGIN CONFIG
Code:
[SERVERDATA]
serverid=0
servertype=0
serverip=5.150.171.31
serverport=29000
servername=LoginServer
connection=2
lanip=5.150.171.31
lansubmask=255.255.255.0

[LOGINSERVER]
accesslevel=100
CreateLoginAccount=1
usethreads=0

[PASSWORDS]
loginpass=789456
charpass=456123
worldpass=321654

WORLD SERVER
Code:
[SERVERDATA]
serverid=1
servertype=2
serverip=5.150.171.31
serverport=29200
servername=Channel 1
maxconnections=500
parentid=1
connection=2
lanip=5.150.171.31
lansubmask=255.255.255.0

[WORLDSERVER]
accesslevel=100
exp_rate=25
drop_rate=5
drop_type=50
zuly_rate=100
welcome_msg=Welcome to Open Source Rose Online
autosave=1
savetime=120
mapdelay=10
visualdelay=200
worlddelay=700
partygap=10
maxstat=255
fairy=1
fairystay=45
fairywait=30
fairytestmode=0
playerdmg=120
monsterdmg=100
cfmode=0
osRoseVer=80

[PASSWORDS]
loginpass=789456
charpass=456123
worldpass=321654

CHAR SERVER
Code:
[SERVERDATA]
serverid=1
servertype=1
serverip=5.150.171.31
serverport=29100
servername=Dark
parentid=0
accesslevel=100
connection=2
lanip=5.150.171.31
lansubmask=255.255.255.0

[CHARSErVER]
deletetime=3600
usethreads=0

[PASSWORDS]
loginpass=789456
charpass=456123
worldpass=321654

Help plox?


NOTE: YES ON PURPOSE I DIDN'T PUT THE SQL PASS ETC. DON'T WANT NO ONE HACKING ME!! BUT IT CONNECTS FINE.



2nd!

When i do try to login, i can't see a channel, only a server.
 
1. Try look if your MySql server is on (Xampp, Wampp etc)
2. if 1 didnt work Re-Install your database (not the mysql server but the .sql files.)
3. if didnt work check the conf files again ;)

You cant see a channel becouse your server is wrong :)
 
I tried all of that already. I don't know my conf's are correct. I have a routor, and i used XXAMP to turn on MySQL, i have MySQL 5.0 and im using a hamachi ip, is that why?
 
can you send me the confs?? if you dont want to give your pass... that you can always change later on send it on messenger
 
Hey guys, im getting this awesomely irritating error. here it is.
You really should use search you know. this is a well known error that has been discussed here loads of times.
Your problem is that the query uses the word range in it.
range is a key word in later versions of mysql. use 'range' (with smart quotes) instead.

Another error i get is, that the SQL can't be connected. ): Whats wrong with my files? Here are my configs.
Your SQL is connecting just fine. It says so in the server console that you posted. On the 5th line down from the top it says "Connected to MySQL Server"
No problems there.

2nd!

When i do try to login, i can't see a channel, only a server.
Of course you don't see a server. there isn't one to see.
FATAL ERROR means your worldserver has aborted. i.e. IT IS NOT RUNNING

Fix the query, recompile the server and it will all be happy again. Don't worry about your configs and stuff yet. Get the server running first.
 
youko, thanks, but comiling seems hard. Im going to go look at the tut, thanks for the help. If i have any problems, ill go post here. tyty<3
 
Hey, i'm having this issue with the Fatal Error aswell, i've downloaded DevC++ to fix the error and re-compile.

EDIT: Well i found the line i was supposed to edit:

MYSQL_RES *result = DB->QStore("SELECT id,level,sp,type,range,target,power,duration,mp, success,weapon,class,rskills,lskills,buff1,buffv11,buffv12, buff2,buffv21,buffv22,buff3,buffv31,buffv***clevel,aoe,aoeradius,script,value1 FROM skills_data order by id");

From what i heard, i need to change the word range in there to like 'range' . I've tried that, as well as other things, then compiled it again. I still get the error. Any ideas?


Also, when i try to compile it, i get a ton of sytax errors or something. It never succeeds.
 
That wasn't me that replied lol. But thats the error i'm getting.

Here is the compiling error:



Then heres the stuff it highlighted after i attempted to compile:

Madelinesz - Server SQL Errors! - RaGEZONE Forums


Then heres what i modified:

Madelinesz - Server SQL Errors! - RaGEZONE Forums


From looking at the error, i'm guessing it has to do with my lib files. I downloaded and installed the libmysql one from the update server in DevC++, as well as pthreads.DevPak. Am i missing some?
 
Your modification is correct

Your errors do indeed appear to be related to some resource files.

_strcmpi is a function. It should not show up as an error
It is definitely not from lmysql or lpthreadGC

Do you have lws2_32 in your linker window under Project options/parameters.

The full entry in that window should be -lmysql -lpthreadGC -lws2_32

That's a pretty strange setup you have there. Are you running dev c++ or CodeBlocks?
I see you have mingw32 in there. You shouldn't need that if you are in dev c++

Your linker output should look like this

"WorldServer.exe" -L"C:/Dev-Cpp/lib" -lmysql -lpthreadGC -lws2_32 -g3
 
I'm using DevC++, my first time. Heres whats in my linker window:

-lmysql -lpthreadGC -lws2_32
../../../../../Dev-Cpp/lib/libws2_32.a
../../../../../Dev-Cpp/lib/libmysql.a

I added these myself, following some other guide. Should i delete them?

../../../../../Dev-Cpp/lib/libws2_32.a
../../../../../Dev-Cpp/lib/libmysql.a

And what is mingw32? As i said, first time using this program and first time messing with anything like this =P. I'm a quick learner though, so bare with me.
 
your config looks right but you really shouldn't need those extra lines for the lib files. It is possible that they may be causing your problems

mingw32 is a compiler
It is typically used with CodeBlocks and not with dev
It may be that you have dev set up to use the wrong compiler. It should use the default one like this.
Madelinesz - Server SQL Errors! - RaGEZONE Forums


I have no idea where you are getting the mingw32 stuff from

Maybe you should just try to reinstall dev and start over
 
EDIT: Problem Solved. Fixed, heres the complete WorldServer.exe
Official Scan Report:

Well this problem was fixed, my only other problem is my client crashing after selecting my character. I think this is due to having the most recent client, and fully updated.


From some searching, I found the v139 Rose client. Heres a link:
 

Attachments

Status
Not open for further replies.
Back