[Mysql] Connecting - 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 (
/showthread.php?tid=210807)
[Mysql] Connecting -
Anthonyx3' - 13.01.2011
Hey guys;
My mysql for some reason isnt connecting to database anymore:
pawn Code:
[MySQL] Error (0): Failed to connect. Can't connect to MySQL server on '213.5.176.155' (10060).
I haven't changed my connection at all:
pawn Code:
new MySQL:handler = mysql_init(1);
mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB, handler, 1);
I use strickenskids mysql.
Anyone know reason why it might have stopped connectings? thanks in advance
Re: [Mysql] Connecting -
coole210 - 14.01.2011
Try to search for that error (10060)
Re: [Mysql] Connecting -
Antonio [G-RP] - 14.01.2011
Quote:
Originally Posted by coole210
Try to search for that error (10060)
|
How very informational!
Re: [Mysql] Connecting -
PeteShag - 14.01.2011
I use it like this:
pawn Code:
mysql_init(LOG_ALL, 1);
mysql_connect(SQL_HOST, SQL_USER, SQL_PASS, SQL_DB);
Same plugin.
Re: [Mysql] Connecting -
kLx - 14.01.2011
Make sure your params aren't messed up, because when I moved from g-stylez plugin, mysql_pass and mysql_db were swapped.
Re: [Mysql] Connecting -
Anthonyx3' - 14.01.2011
i didnt switch just now, ive been using same plugin since start, it just stopped working
Re: [Mysql] Connecting -
DVDK - 14.01.2011
Are you sure you have a MySQL server running?