mysql - website shows unavailable while taking DB backup? -


my website created using drupal 7 on 1 instance of amazon & database on amazon rds . whenever taking backup of database using mysql root user & simultaneously when developer try clear cache on website time website goes offline untill backup gets on around 30 min happens everytime . solution avoid problem.

try use parameter when taking backup mysqldump . --lock-tables myisam storage engine. --single-transaction innodb storage engine.

--lock-tables lock tables before dumping them. tables locked read local allow concurrent inserts in case of myisam tables.

for transactional tables such innodb , bdb, --single-transaction better option, because not need lock tables @ all.--single-transaction produces checkpoint allows dump capture data prior checkpoint while receiving incoming changes. incoming changes not become part of dump. ensures same point-in-time tables.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -