Connecting to a SQL DB through PHP on another network -


here scenario

  • pc php site , apps connected 10.1.75.* network
  • (a) database server connected same 10.1.75.* network
  • (b) secondary database connected 10.198.140.* network

now problem, can pull info primary database (a) without hassle, when want info secondary db (b) need log in on (a) via ssh , mysql -h 10.198.140.* onto db

is in anyway possible can pull info (b) without being on same network, daisy chain through (a) (b) info need , doing in php?

well, easiest gain access through public ip server b can connect directly.

if that's not possible, option set slave database on server updated via replication server b , query directly on a. however, replication can pain manage , can't write it, read.

you set proxy on on different port route through b, though can't there, i'm no sys admin.

i don't how can talk b server can't, doesn't make sense, if can set permissions talk b, should able same server.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -