Strickenkid's mysql_connect()
#1

Hello guys .. so i have a problem .. as the title says its about Strickenkid's mysql_connect()


Here's the code:



Up top:
Code:
#define MYSQL_HOST 		  "localhost"
#define MYSQL_USER        "root"
#define MYSQL_PASS        ""
#define MYSQL_DB          "roleplay"
under Gamemodeinit:

Code:
Handle = mysql_init(1);
	mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS , MYSQL_DB , Handle , 1);
And here's the error .. :

Code:
Error (0): Failed to connect. Access denied for user 'root'@'localhost' (using password: YES).
It says that im using a password although i ain't using one ...

I tried switching the password and the database .. didnt help me ..


Thank you in advance!
Reply


Messages In This Thread
Strickenkid's mysql_connect() - by ViPGuy - 16.09.2012, 10:55
AW: Strickenkid's mysql_connect() - by BiosMarcel - 16.09.2012, 10:57
Re: Strickenkid's mysql_connect() - by ViPGuy - 16.09.2012, 10:58
AW: Strickenkid's mysql_connect() - by BiosMarcel - 16.09.2012, 10:59
Re: Strickenkid's mysql_connect() - by ThomasCarter - 16.09.2012, 11:02
Re: Strickenkid's mysql_connect() - by ViPGuy - 16.09.2012, 11:05
Re: Strickenkid's mysql_connect() - by ViPGuy - 16.09.2012, 11:08

Forum Jump:


Users browsing this thread: 2 Guest(s)