Re: Backuping MySQL-databases

From: Date: Mon, 14 May 2007 09:14:03 +0000
Subject: Re: Backuping MySQL-databases
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-27890@lists.php.net to get a copy of this message
A locked mysql database works faster. If you use mysqldump to backup, it's locked by default. That can be changed with arguments though. If you use something like a PHP loop to export every table on it's own, the risk is that one table is written to while the PHP script is exporting another, thus leaving you with un-synced data. That might not be a risk, depending on what your database structure is... Mike Gustav Wiberg skrev:
Hi there! Is it neccessary to lock-tables when backing up MySQL-databases? Why? Best regards /Gustav


« previous php.windows (#27890) next »