You are here: Re: How to mirror MySQL database on two servers with PHP? « PHP Programming Language « IT news, forums, messages
Re: How to mirror MySQL database on two servers with PHP?

Posted by Martin Mandl - m2m tech support on 03/19/07 09:07

On Mar 19, 5:22 am, Man-wai Chang <toylet.toy...@gmail.com> wrote:
> > Why are you asking this in a PHP newsgroup? It has nothing at all to do
> > with PHP.
>
> What's wrong about using PHP to mirror a MySQL table? :)
>
> --
> iTech Consulting Services Limited
> Expert of ePOS solutions
> Website:http://www.itech.com.hk(IE only)
> Tel: (852)2325 3883 Fax: (852)2325 8288

Dear Man-Wai,

I guess it would be much slower than using the MySQL functionality
(e.g. mysqldump) directly. With php you would have to lock your host
database, dump the data, unlock the host database, lock the slave
database, upload the data, unlock the slave database ... MySQL has
even some functions toee directly synchronize host & slave without
having to generate the dump ...

Good luck
Martin


------------------------------------------------
online accounting on bash bases
Online Einnahmen-Ausgaben-Rechnung
http://www.ea-geier.at
------------------------------------------------
m2m server software gmbh
http://www.m2m.at

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация