Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 21, 2012, 03:12:39 AM

Pages: [1]   Go Down
  Print  
Author Topic: Cross domain database access  (Read 1501 times)
pr0fess0r
Pong! (the videogame) Master
*****
Offline Offline

Posts: 24


« on: June 05, 2008, 04:28:11 PM »

Hi
if I have two separate domains on the same Plesk dedicated server, can one site access the other's database in MySQL/PHP using the correct credentials?
One of our clients wants a re-branded version of his site under a new domain, but with access to the same database. Is this just as simple as using the same connection string and credentials on the new site?

cheers

Lucas
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1395



« Reply #1 on: June 05, 2008, 08:48:04 PM »

Hi Lucas,

Using the database login details from the old site in the scripts on the new one should work just fine.
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to: