16.09.2012, 10:55
Hello guys .. so i have a problem .. as the title says its about Strickenkid's mysql_connect()
Here's the code:
Up top:
under Gamemodeinit:
And here's the error .. :
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!
Here's the code:
Up top:
Code:
#define MYSQL_HOST "localhost" #define MYSQL_USER "root" #define MYSQL_PASS "" #define MYSQL_DB "roleplay"
Code:
Handle = mysql_init(1); mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS , MYSQL_DB , Handle , 1);
Code:
Error (0): Failed to connect. Access denied for user 'root'@'localhost' (using password: YES).
I tried switching the password and the database .. didnt help me ..
Thank you in advance!