SA-MP Forums Archive
how to connect to mysql DB? - 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: how to connect to mysql DB? (/showthread.php?tid=412787)



how to connect to mysql DB? - Geeboi_Mehdi - 03.02.2013

i need help to connect to Mysql i have Xampp instilled


Re: how to connect to mysql DB? - Scenario - 03.02.2013

Sure. Check this: http://*******/Tt54Me


Re: how to connect to mysql DB? - ReneG - 03.02.2013

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
Sure. Check this: http://*******/Tt54Me
If you're gonna post a lmgtfy link, at least link it to a valid query. I couldn't find one xampp link related to sa-mp.

@OP - if you've just installed xampp, and haven't tinkered with the settings, this should do it.
pawn Код:
new mysql = mysql_connect("localhost", "root", "database_name", "");
where "database_name" is your respective database name.