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
#2

I think you used a wrong Password or a wrong Username

(I don't know many about MySQL)
Reply
#3

But the problem is that i dont use a password .. and its says that im using one :S
Reply
#4

Use Password 123 or something like this and try it again

Or undefine the password if you don't use a password
Reply
#5

Define the Password bud, In the "Put your password here". If you could'nt Figure that out you shouldnt
be using mysql
Reply
#6

Dafuq ? Please talk english.
Reply
#7

Never Mind i got it..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)