| Author |
Message |
dc_eros BizHat Newbie

Joined: 05 Jul 2007 Posts: 19
|
Posted: Wed Jul 18, 2007 10:31 am Post subject: Developing two (2) websites with Replicated MySQL database. |
|
|
Hello guys at Bizhat.com
I'm Lysender, a PHP + MySQL intermediate developer.
I want my project website this way: There are two servers, one at the local campus and the other at some free hosting that supports PHP + MySQL. Each websites has its own database, and directory structure with files like user photos and avatars.
I want it this way: Where ever the visitor wishes to visit, his/her accounts and photos are available on both servers.
I'm not asking for source codes or whatever, I'm asking for a technique to make it work. Can anybody help me for that? Post the possible methodologies that can be applied.
Thank you in advance guys. |
|
| Back to top |
|
 |
vinil BizHat Newbie

Joined: 31 Jan 2008 Posts: 2
|
Posted: Thu Jan 31, 2008 11:37 am Post subject: Re: Developing two (2) websites with Replicated MySQL databa |
|
|
hi Lysender,
You can use mysql database replication for this.
Use the concept of master slave relication
configure one of the server as master and the other as slave.
Data in master will be replicated to the slave.
2. configure a proxy to redirect requests to 2 webservers.
lemme know if you need any further help
Regards
Vinil |
|
| Back to top |
|
 |
ftvfatboy BizHat MOD

Joined: 28 Nov 2005 Posts: 2863 Location: AT DORRS NEAR HEAVEN
|
Posted: Sun Feb 10, 2008 6:03 am Post subject: |
|
|
| Thanks vinil for helping people at time..cheers for ur work |
|
| Back to top |
|
 |
|