SA-MP Forums Archive
Connection error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Connection error (/showthread.php?tid=355895)



Connection error - Urefeu - 01.07.2012

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


Re: Connection error - Hawky133 - 01.07.2012

Hello.

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


Re: Connection error - TerraCratis - 07.09.2012

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


Re: Connection error - Glint - 07.09.2012

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