MySQL Connecting failure - 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: MySQL Connecting failure (
/showthread.php?tid=229895)
MySQL Connecting failure -
Sascha - 22.02.2011
Hi...
I'm using KingJ hosts and installed Stricken Kid's Mysql Plugin 2.0 with it...
I uploaded my script and when i run it now it doesn't connect to mysql and says:
"Function: mysql_connect called with incorrect parameter count."
(I'm using an external DB)...
pawn Код:
new MySQL:connection = mysql_init(LOG_ONLY_ERRORS, 1);
mysql_connect(SQL_HOST, SQL_USER, SQL_PASS, SQL_DB, connection, 1);
what's wrong?
(the plugin loads though)
Re: MySQL Connecting failure -
kariok - 22.02.2011
Try
pawn Код:
mysql_connect(SQL_HOST, SQL_USER, SQL_DATABASE, SQL_PASSWORD);
Re: MySQL Connecting failure -
Sascha - 22.02.2011
wrong parameters -.-
Re: MySQL Connecting failure -
Sascha - 23.02.2011
noone else?
Re: MySQL Connecting failure -
Sascha - 23.02.2011
nvm fixed