mysqldump -e -quick --add-drop-table --add-locks --lock-tables -hlocalhost -uUser -pPW domain_db gzip - > backup.sql.gz
And then:
zcat backup.sql.gz mysql -hlocalhost -uUSER -pPW domain_db
Within phpAdmin I noticed the database freezing at table #106. When the freeze occurs, my entire dedicated server is slowed down, and it's a Dual Core Opteron 2212 w/ 2 GB RAM server with only a few sites hosted on it. I'm using MySQL 5.x
Any help?
Went back to my old server and checked the database for errors and repair, and I got this message:
forum_db.threadread repair warning Number of rows changed from 16752 to 16750
I'm going to backup then restore once again and see if that works.
mysql -u user -p dbname < {path}/backup.sql
#If you have any other info about this subject , Please add it free.# |