Posts: 729
Threads: 66
Joined: Jun 2013
Please help i have a gm but the data needs to be saved to sql how do i do that?
Posts: 729
Threads: 66
Joined: Jun 2013
Posts: 183
Threads: 16
Joined: Mar 2012
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
Posts: 729
Threads: 66
Joined: Jun 2013
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
Posts: 729
Threads: 66
Joined: Jun 2013
Posts: 729
Threads: 66
Joined: Jun 2013
I tryed that but when i try to start my server it says failed to connect to mysql.
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
Have you put the mysql server online first? Also check the mysql logs, it will inform you about why it failed to connect.
Posts: 729
Threads: 66
Joined: Jun 2013
Yes the
mysql was started.