SA-MP Forums Archive
Help Me Setup MYSQL. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help Me Setup MYSQL. (/showthread.php?tid=522437)



Help Me Setup MYSQL. - Seifspeed - 27.06.2014

So i am using Wamp Server and i want to set up mysql for a server i downloaded. Here Are The Codes I have:
i don't know how much field and tables to set etc..Please help me out.i will be constantly refreshing this page.


#define DB_HOST "localhost"
#define DB_USER "root"
#define DB_PASS ""
#define DB_ "DBNAME"

#define THREAD_LOGIN 1
#define THREAD_REGISTER 2
#define THREAD_UPDATE 3
#define THREAD_CHECK_NAME 4
#define THREAD_CHANGE_NAME 5
#define THREAD_GENDER_SELECT 6
#define THREAD_DOB_ENTRY 7
#define THREAD_LOADHOUSES 10
#define THREAD_SAVEHOUSES 11
#define THREAD_SAVENEWS 12
#define THREAD_LOADNEWS 13
#define THREAD_SAVEBAN 14
#define THREAD_UNBAN 15
#define THREAD_BANCHECK 16
#define THREAD_BANCHECKN 17
#define THREAD_BANKICK 18
#define THREAD_LOADWEED 19
#define THREAD_LOADTRUNK 20


Re : Help Me Setup MYSQL. - Clad - 27.06.2014

Just change this.
pawn Код:
#define DB_HOST "localhost"
#define DB_USER "root"
#define DB_PASS ""
#define DB_ "DBNAME"
And import your dump.sql