Connecting to MySQL from CGI script

Status
Not open for further replies.

filesite47

New Member
Messages
1
Reaction score
0
Points
0
Hi,

I've succeeded connecting to an external MySQL Server from a CGI script (running on my x10Hosting account under cgi-bin directory). The problem is when I'm trying to connect to the MySQL Server of my x10Hosting account from this CGI script. I use 'localhost' / '172.0.0.1' as host name and my username and password I've set in the CPanel, and still getting this error:
Can't connect to MySQL server on '127.0.0.1' (111)
Error code: 2003
MySql State: HY000
That am I doing wrong?

Thank you,
Elad
 
Status
Not open for further replies.
Top