SA-MP Forums Archive
Need help running a server but data not saving to sql - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Need help running a server but data not saving to sql (/showthread.php?tid=508572)



Need help running a server but data not saving to sql - Mckarlis - 22.04.2014

Please help i have a gm but the data needs to be saved to sql how do i do that?


Re: Need help running a server but data not saving to sql - aimane65 - 22.04.2014

Here: https://sampforum.blast.hk/showthread.php?tid=508488 if I helped you, please rep me if I helped you.


Re: Need help running a server but data not saving to sql - Mckarlis - 22.04.2014

Nop sorry didnt help


Re: Need help running a server but data not saving to sql - PinEvil - 22.04.2014

I'm assuming you want to save all of your playerstats to save under a table in mysql,

https://sampwiki.blast.hk/wiki/Mysql_tutorial


Re: Need help running a server but data not saving to sql - Mckarlis - 22.04.2014

What i mean i have this in my gm

Код:
#define SQL_HOST "127.0.0.1" // Hostзtвja IP.
#define SQL_USER "root" // PHPMYADMIN vвrds.
#define SQL_DB "server" // Datubвze.
#define SQL_PASS "" // Datubвzes parole.
But i dont know how to connect to it or something

Also when i put http://localhost/ or http://localhost/phpmyadmin/
it shows a blank screen


Re: Need help running a server but data not saving to sql - Mckarlis - 23.04.2014

Bump still needs fixing


Re: Need help running a server but data not saving to sql - Konstantinos - 23.04.2014

You need a MySQL server for that.

For Windows, WAMP is good (that's what I use): http://www.wampserver.com/en/
For Linux, install mysql server and the rest that needs to be ran.

You will then need to create the database "server" so you can start the server.


Re: Need help running a server but data not saving to sql - Mckarlis - 23.04.2014

I tryed that but when i try to start my server it says failed to connect to mysql.


Re: Need help running a server but data not saving to sql - Konstantinos - 23.04.2014

Have you put the mysql server online first? Also check the mysql logs, it will inform you about why it failed to connect.


Re: Need help running a server but data not saving to sql - Mckarlis - 23.04.2014

Yes the
mysql was started.