Jump to content

Accessing A Database


Recommended Posts

I have a MySQL database on my abc.com domain and wish to have PHP pages on my 123.com, 456.com, and 789.com domains access information in the abc.com database. (It's for a central calendar system with different front pages depending which site you're on.) Is there anything wrong with doing that as long as I own all the domains? And if it's ok, how do I do it? Or if anybody can point me in the general direction that'd be cool too. Thanks.



Link to comment
Share on other sites

Get the IP address of all the domains you want to have access to the database on abc.com.


Go to abc.com's control panel and in the database administration area, enter those IPs in the authorized hosts for the database you want.


Voilá, they can now access the database! :)

Link to comment
Share on other sites

Thanks for the solution.


Just faced a similar problem, and came up with a simpleton's work-around:

I have all the MySQL database and PHP pages on one site, but access from a 2 frame page on other sites:

unique site header (and language) above, PHP placed below. Almost seamless :thumbup1:



Link to comment
Share on other sites

Join the conversation

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

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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