Page 3 of 7
Re: sql file for DDNet
Posted: Wed Sep 23, 2015 2:39 pm
by FlushA
tnx deen my source now fixed
but now i added in autoexec_server.cfg sv_use_sql 1
and open DDNet-Server_sql server is crashed and closed
i don't know why this don't work?:(
Re: sql file for DDNet
Posted: Wed Sep 23, 2015 3:39 pm
by deen
What's the error? It works here.
Re: sql file for DDNet
Posted: Wed Sep 23, 2015 3:48 pm
by FlushA
doesn't show any error just crashed the ddnet-server_sql.exe after opening
Re: sql file for DDNet
Posted: Wed Sep 23, 2015 4:18 pm
by deen
No idea, sorry. I really never ran it on Windows. Maybe someone with Windows experience can give it a try and figure something out.
Re: sql file for DDNet
Posted: Wed Sep 23, 2015 4:23 pm
by FlushA
Re: sql file for DDNet
Posted: Wed Sep 23, 2015 4:27 pm
by deen
Ok, did you set the other SQL settings?
Code: Select all
sv_use_sql 1
sv_sql_ip "localhost"
sv_sql_port "3306"
sv_sql_database "teeworlds"
sv_sql_prefix "record"
sv_sql_user "teeworlds"
sv_sql_pw "foobar"
Do you have a MySQL server runnning? Maybe the version of you mysql libs is not working with Visual Studio.
Re: sql file for DDNet
Posted: Wed Sep 23, 2015 4:31 pm
by FlushA
my uwamp mysql version is 5.6.20,
my config is
Code: Select all
sv_use_sql 1
sv_sql_user "root"
sv_sql_prefix "record"
sv_sql_pw ""
sv_sql_database "teeworlds"
sv_sql_ip "localhost"
sv_sql_port "3306"
Re: sql file for DDNet
Posted: Thu Sep 24, 2015 3:19 pm
by FlushA
I think this line does not work
line:
m_pConnection = m_pDriver->connect(connection_properties);
file:
sql_score.cpp
can u fix that ?
Re: sql file for DDNet
Posted: Thu Sep 24, 2015 4:56 pm
by deen
Works for me, no idea why it doesn't on Windows.
Re: sql file for DDNet
Posted: Thu Sep 24, 2015 8:11 pm
by FlushA
ok tnx