Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.