Connection error
#1

Hello

I installed Wamp and I downloaded the mysql plugin.

I put the includes and all that is necessary.

In my code, I do : mysql_connect("localhost", "root", "", "test", mysql);

IDs are good, but when I launch samp-server.exe : [MYSQL] Error (0) : Failed to connect. Access denied for user 'root'@'localhost' (using password : YES).

Here is the line of the user in phpMyAdmin :

User: root
Client: localhost
Password: no
Global privileges: all privileges
"Grant": yes

What is the problem please ?

Thanks in advance !

Urefeu
Reply
#2

Hello.

Please could you say which plugin you are using? There is more than one MySQL plugin.
Reply
#3

Same problem, with this plugin: https://sampforum.blast.hk/showthread.php?tid=122983
Reply
#4

Because your database name is left blank "", follow the correct format https://sampwiki.blast.hk/wiki/MySQL#mysql_connect
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)