[mythtv-users] Locking Mysql database for backup

Kevin Kuphal kuphal at dls.net
Fri Nov 12 18:09:52 UTC 2004


Ryan wrote:

>Does anyone know offhand how to lock a mysql database for backup? I'd like
>to cron a table dump, but I would like to lock the database before doing
>so.
>Any ideas?
>  
>
read this:

http://dev.mysql.com/doc/mysql/en/Backup.html

And note the mysqldump program and the command-line options it has to 
LOCK the tables before they are dumped, specifically the 
--lock-all-tables option.

Kevin



More information about the mythtv-users mailing list