Help With MYSQL... - 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: Help With MYSQL... (
/showthread.php?tid=385700)
Help With MYSQL... -
Smokkr - 17.10.2012
Hey guys, before I've download Dan.'s Battlefield server (Now the thread is closed)So I can't connect to the MySQL Database... what I need to do??
MySQL Code:
pawn Код:
//====================================================
#define mysql_host "localhost"
#define mysql_user "galaxycs_us"
#define mysql_password "1234554321"
#define mysql_database "galaxycs_db"
//====================================================
Picture to see that display FAIL!
Please help!
Re: Help With MYSQL... -
TzAkS. - 17.10.2012
What are you using for data base?
What program..?
Re: Help With MYSQL... -
Smokkr - 17.10.2012
What you mean what program?I use phpMyAdmin.
Re: Help With MYSQL... -
TzAkS. - 17.10.2012
Do you have password there?
try
Код:
#define mysql_host "localhost"
#define mysql_user "root"
#define mysql_password ""
#define mysql_database "galaxycs_db"
Is in your pc right?
Re: Help With MYSQL... -
Smokkr - 17.10.2012
Actually I've buy domain and I make the database from the CPanel of the site.
Re: Help With MYSQL... -
Edvin - 17.10.2012
Are you trying to connect to localhost( wamp server ), or to an host phpMyAdmin?
Re: Help With MYSQL... -
Smokkr - 17.10.2012
To phpMyAdmin.
Re: Help With MYSQL... -
TzAkS. - 17.10.2012
Well,if is not in your pc,why are you using localhost?
Is at the same host with the server host?
Try to use an ip.
Re: Help With MYSQL... -
Smokkr - 17.10.2012
Still can't connect :/ Anyone?
Re: Help With MYSQL... -
doreto - 17.10.2012
One question: Did you host your server on localhost(your pc ) or on pay host?
Quote:
Originally Posted by Smokkr
Actually I've buy domain and I make the database from the CPanel of the site.
|
If i understand correct you buy WEB host and trying to connect your localhost server to it ?
- if its true then you cant , becose host (most of them) dont allow remove database use !