SA-MP Forums Archive
mysql help.. - 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 help.. (/showthread.php?tid=592879)



mysql help.. - itachi - 30.10.2015

Quote:

error 017: undefined symbol "db4free"
error 017: undefined symbol "net"

Код:
if (!mysql_connect(db4free.net, pfr123, password, pfrko, conn))



Re: mysql help.. - AbyssMorgan - 30.10.2015

~.~
PHP код:
mysql_connect(const host[], const user[], const pass[], const db[], MySQL:handle = (MySQL:0), auto_reconnect 0);
mysql_connect("hostname","username""password""db"); 



Re: mysql help.. - Vince - 30.10.2015

Never use an external database. Especially not a free one like that. This is at least 100 times slower than a local database, and also much less secure because all data is transmitted over the Internet where it can be intercepted. SSL helps somewhat, but it's not a guarantee.

Bottom line: install a local MySQL server, or ask the host to do it. If they refuse, get a better host.


Re: mysql help.. - Macluawn - 30.10.2015

Nothing wrong with using an external database, if you know what you are doing.
If you`re not sure or speed is of the essence, then use a local one.