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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Querying Databases on different server

Status
Not open for further replies.

tsyle

Programmer
May 16, 2005
35
US
I'm not sure if this is possible, but i have one site that is hosting the database ( and i am creating another site (1internet-phone.com) where i would like to use the database from How would i go about doing this? Can it even be done in MySQL?
 
I don't understand.

Are both web sites going to be hosted on the same server or set of servers?
Are the databases going to be on the same server or set of servers?


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
The websites will be on the different server, and the database will be on only 1 server. Basically I am trying to create a link exchange database which both site can use. Right now I am connecting to the database through dreamweaver. When it ask for host i put localhost.

For example

when i am editing i use localhost for the MySQL server, but when i use i can't use localhost because it is a different server.
 
You can certainly connect to a MySQL server from another machine. You just need to make sure that your user is allowed to login to MySQL from the other machine.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top