Jump to content

Cant connect to remote mysql db


squiggerz

Recommended Posts

Ok, I have a db on Server A.

 

Server B is on the same network, different IP. Server B connects to the db correctly through my php script.

 

Server C is on a totally different network. Using the same script as was used on Server B, I'm unable to connect to Server A's database.

 

Access hosts on Server A has been configured as % to allow connections from anywhere.

 

I can connect to the db from my local computer using SQLyog just fine.

 

Both Server B & C are running php 4.4

 

Any ideas as to why the script will not connect on Server C?

Link to comment
https://forums.phpfreaks.com/topic/72276-cant-connect-to-remote-mysql-db/
Share on other sites

Update:

 

Server B is not the only server that the script works on. I've tested the same script on at least 5 other servers across the interwebs...

 

So either Server A is blocking traffic from Server C ?

 

or

 

Server C has a configuration problem somewhere in php?

Ok, I've narrowed it down a bit more. Apparently I can get this php connect script to function correctly on several different servers. The only one I'm having trouble getting it to work correctly on is a Verio VPS account.

 

What I'm saying is:

 

Verio VPS account has the php script to execute.

 

Server A is a Hostgator account, which is where the database is located.

 

Every other server I try can use this script to access that database. Except for the Verio one.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.