Need help running a server but data not saving to sql
#1

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

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

Nop sorry didnt help
Reply
#4

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
Reply
#5

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
Reply
#6

Bump still needs fixing
Reply
#7

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.
Reply
#8

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

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

Yes the
mysql was started.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)