Mysql 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: Mysql Connection Error (
/showthread.php?tid=303529)
Mysql Connection Error -
Abreezy - 14.12.2011
Hey I keep getting:
[22:37:18] [MySQL] Error (0): Failed to connect. Access denied for user 'root'@'localhost' (using password: YES).
Yet I'm trying to run my script off my desktop, using WAMP.
Why isn't working if its the default WAMP login, and this is my PWN line for mysql connection
mysql_connect("127.0.0.1", "root", "", "larp", connection);
Re: Mysql Connection Error -
N0FeaR - 14.12.2011
mabye you put wrong password?
Re: Mysql Connection Error -
shitbird - 14.12.2011
Your mysql configuration might be incorrect.
If you think it is a problem with WAMP on your localhost, try a free mysql database provider, such as
http://db4free.net/.