MYSQL on VPS(Error connecting to 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: MYSQL on VPS(Error connecting to Localhost) (
/showthread.php?tid=556042)
MYSQL on VPS(Error connecting to Localhost) -
MCZOFT - 09.01.2015
hello ,
i have a VPS , i uploaded my stuff on it i installed mysql and apache package on the VPS but when im starting my server ,crash detecter and mysql log says that i have something wrong with the db conenction ..
here is the MYSQL Log
PHP код:
[ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'IP of my VPS' (111)
i changed the IP on my gamemode to Localhost but the same problem ,
any one knows how to solve this problem ? or just someway to target for the server that im working on the VPS(localhost ? )
.
Thanks
Re: MYSQL on VPS(Error connecting to Localhost) -
Vince - 09.01.2015
Use 127.0.0.1. Using the external IP for a locally hosted service is like knocking on your own front door.
Re : MYSQL on VPS(Error connecting to Localhost) -
MCZOFT - 09.01.2015
Thank you Vince , it works , i apreciate it brother
+1