Mysql

Cpanel/WHM truncates MySql dump in backup progress

It seems as if I am the one and only person using cpanel/whm for the web hosting solution and at the same time have a MySQL database with 5+mio records.

During the backup process cpanel simply truncates the results at a few hundred K records… what a mess… and it put's the server under unnecessary load by compressing the file on the fly… what a mess…

After some weeks of research with ThePlanet support we came to a simply and effective solution…

</p>

	<p>time mysqldump -l -uroot database_name > database_dumpfile.sql</p></p>

	<p><p>real 1m19.625s </p>

	<p>user 0m11.890s </p>

	<p>sys 0m17.600s</p></p>

	<p><p>root@xeon1 [/usr/mysqlbackup]# ls -lah database_dumpfile.sql </p>

	<p><del>rw-r—r-</del> 1 root root 390M Mar 4 13:54 database_dumpfile.sql</p></p>

	<p><p>root@xeon1 [/usr/mysqlbackup]# grep -c "reallyhugetable"  database_dumpfile.sql </p>

	<p>4513227</p></p>

	<p><p>mysql> select count(*) from reallyhugetable</p>

	<p>-> ; </p>

	<p><ins>—————</ins> </p>

	<p>| count(*) | </p>

	<p><ins>—————</ins> </p>

	<p>| 4513224 | </p>

	<p><ins>—————</ins> </p>

	<p>1 row in set (0.00 sec)</p></p>

<p>

As you can see this only took about a minute to dump the 4 mio records into an ASCII dump (a SQL file to recreate the whole table)

Average rating
(0 votes)

Similar entries

  • After weeks of investigation by the admin support staff we only came to the single conclusion … the mysql backup of the WHM/Cpanel backup feature simply corrupts the backup after some megabytes or a few million records… not designed for…

  • Moving to a great fast server is fine, WHM 9.2.0 cPanel 9.3.0-R5 RedHat Enterprise 3 – WHM X v3.1.0, 1 TB Transfer, 1 GB Ram, 2400 Mhz and 80 GB HD all for me… etc…. But the web mail database…

  • A little cleanup – after testing out MySql's ACID compliant storage engine InnoDb some months ago I had a 3 Gigabytes large IBDATA1 cluttering my server's 10k SCSI disks… compared to the 300GB desktop drives this is just 1%, but…

  • I've been researching on ways to get the multiple stats reports from AWSTATS/Cpanel/WHM installations of aprox 20 diff. domains into one, convenient view – or better "overview" report. So far I only found 2 external tools = php scripts AWSTATStotals…

  • SAP MaxDB Version 7.6 beta available