U
U
unlik2015-02-24 19:14:15
MySQL
unlik, 2015-02-24 19:14:15

mysqldump and centos?

There is a vps on Centos.
When you run the script:
mysqldump -u$MUSER -p$MPASS -A > $DPATCH
tar czfP $DBGZIP $DPATCH
rm -rf $DPATCH
ncftpput -m -u$FTPU -p$FTPP $FTPS $FTPF $DBGZIP
connection to the database is lost on the work site. What could be the problem? How to overcome?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Entelis, 2015-02-24
@unlik

stackoverflow.com/questions/104612/run-mysqldump-w...
dba.stackexchange.com/questions/19532/safest-way-t...
by default mysqldump blocks access to all tables

P
Puma Thailand, 2015-02-24
@opium

During the dump, the table is apparently locked, and the site is waiting for the lock to be removed.
nice options like this -n 19 ionice -c2 -n7 mysqldump --quick --single-transaction can often help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question