Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Verifing Data Integrity

From: Ware Adams <rwalists(at)washdcmail.com>
Date: Thu Aug 02 2007 - 23:05:19 EDT


On Jul 17, 2007, at 11:20 AM, Rick James wrote:

> If you could extract
> SELECT MD5(concat(all the fields)) FROM foo ORDER BY 1;
> would be a nearly perfect hash. It would require a table scan
> (indexes
> useless). Then take the output, store it in a file, and take the
> MD5 of the
> file. This gives you a single, fairly short string that is quite
> adequate
> for comparing between master and slave.

We do something similar to this, we use mysqldump and pipe the output to md5. It's fairly useful, but you will wind up with disagreements on anything with a float in it (at least).

--Ware

-- 
MySQL Replication Mailing List
For list archives: 
http://lists.mysql.com/replication
To unsubscribe:    
http://lists.mysql.com/replication?unsub=lists@pantek.com
Received on Thu Aug 2 23:06:44 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 09 2007 - 19:30:25 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library