Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php remote mysql connection problem (works from remote terminal)

Status
Not open for further replies.

salfordstu

Technical User
Jun 4, 2008
2
IE
Hi Everyone,

Having a slight problem connecting to a remote mysql server.
I can connect fine from the remote terminal but when i try to use my simple test php script i get the following error.

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (13) in /var/ on line 7
Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (13)

Any ideas would be great.

Regards
Stu
 
Doh got it working, disabled SElinux and connects,

dam SElinux!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top