Jump to content

can connect to remove db via command line, but not in php


keegan

Recommended Posts

Hey guys,

I've been dealing with this problem for a long time and have been unable to connect to a mysql server on a remove machine from my webserver.

The setup:
- mysql 5x running on server A
- mysql 5x running on server B
- php 4x running on server A

The problem:
- can connect to mysql on server B using command line on server A
- can connect to mysql on server A using php and command line from Server A
- cannot connect to mysql on server B using php webpage on server A
- can connect to mysql on server B with php from another machine (so i know it's a problem with server A)

I know it is not a firewall issue since i can connect to the mysql db on server B from other machines using php.

skip_networking is off on both machines.


Does anyone have an idea what could be wrong with server A, and why php wont let it conenct to any other mysql servers using php?

(If this needs to be in php & mysql, or php help, please move)
Link to comment
Share on other sites

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.