Connect mysql with localhost - 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: Connect mysql with localhost (
/showthread.php?tid=401803)
Connect mysql with localhost -
Tanush123 - 24.12.2012
This seems to not work, i have it on top of script
pawn Код:
#define MYSQL_HOST "localhost"
#define MYSQL_USER "root"
#define MYSQL_PASS ""
#define MYSQL_DB "xg"
May someone show the proper way?
Re: Connect mysql with localhost -
[HiC]TheKiller - 24.12.2012
1. Are you using the mysql_connect function in your script :P?
2. Do you have a virtual server installed such as wamp or xampp?
3. In PhpMyAdmin do you have a database called xg?
Re: Connect mysql with localhost -
Tanush123 - 24.12.2012
1. Yes
2. wamp
3. Yes
Re: Connect mysql with localhost -
Typhome - 24.12.2012
Use mysql_debug(1); at OnGamemodeInit and after executing server, have to look into mysql_debug.txt file in server directory.
Re: Connect mysql with localhost -
Tanush123 - 24.12.2012
ye thanks typhome, i forgot to check my debug lol.