MySQL Issue
#3

pawn Код:
// somewhere ontop of your script, under the includes.
#define MyHOST "localhost" // you said it runs on your PC so keep it like this
#define MyUSER "root" // change it if you have a user account for mysql; if you don't understand it leave it like this
#define MyPASS "" // password change it if you have one; if you don't understand leave it like this
#define MyDB "SQLDB" // change this if your database name is different, from what you have provided

// under OnGameModeInit
mysql_init();
mysql_connect(MyHOST, MyUSER , MyPASS, MyDB );
Also judging from the code, I guess you use strickenkids plugin. I strongly advice to use the plugin from G'Stylezz, as I experienced server crashes with strickenkids.

(the error means that you are not authorized to acces the mySQL database, this can either be caused by providing the wrong username and or password in the Pawn script. Or because you specified the wrong database).
Reply


Messages In This Thread
MySQL Issue - by Criss_Angel - 28.01.2011, 14:14
Re: MySQL Issue - by Criss_Angel - 28.01.2011, 14:27
Re: MySQL Issue - by playbox12 - 28.01.2011, 14:53
Re: MySQL Issue - by Criss_Angel - 28.01.2011, 15:35
Re: MySQL Issue - by dice7 - 28.01.2011, 15:37
Re: MySQL Issue - by Criss_Angel - 28.01.2011, 15:45
Re: MySQL Issue - by Criss_Angel - 28.01.2011, 16:11
Re: MySQL Issue - by Criss_Angel - 28.01.2011, 16:23
Re: MySQL Issue - by Kaylux - 28.01.2011, 16:28
Re: MySQL Issue - by Criss_Angel - 28.01.2011, 16:35

Forum Jump:


Users browsing this thread: 2 Guest(s)