StrickenKid's mysql_connect problem - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: StrickenKid's mysql_connect problem (
/showthread.php?tid=255674)
StrickenKid's mysql_connect problem -
lolumadd_ - 16.05.2011
I just switched over from G-Stylez plugin to StrikenKid's plugin so I can use my script a 64Bit CentOS operating system. I use the same login info as last time, same host, user, db, pass as last time, but this time it wont connect.
Код:
Error (0): Failed to connect. Access denied for user 'root'@'localhost' (using password: YES).
And yes, I know that in StrikenKid's plugin the db and password are switched, that is not the problem. It simply wont let me connect. I am not a noob at MySQL and the mysql works fine, just not with this plugin.
Can someone help me please?
Код:
#define SQL_HOST "localhost"
#define SQL_USER "root"
#define SQL_PASS ""
#define SQL_DATA "samp"
new MySQL:connection = mysql_init(LOG_ONLY_ERRORS, 1);
mysql_connect( SQL_HOST, SQL_USER, SQL_PASS, SQL_DATA, connection, 1);
Re: StrickenKid's mysql_connect problem -
lolumadd_ - 16.05.2011
fixed