Comments on: MySQL Table Sync 0.9.3 released http://www.xaprb.com/blog/2007/05/17/mysql-table-sync-093-released/ Stay curious! Fri, 10 May 2013 18:25:19 +0000 hourly 1 http://wordpress.org/?v=3.5.1 By: Xaprb http://www.xaprb.com/blog/2007/05/17/mysql-table-sync-093-released/#comment-13317 Xaprb Sun, 19 Aug 2007 12:33:37 +0000 http://www.xaprb.com/blog/2007/05/17/mysql-table-sync-093-released/#comment-13317 Looks like it’s working okay. Try the –execute option.

]]>
By: Simon http://www.xaprb.com/blog/2007/05/17/mysql-table-sync-093-released/#comment-13316 Simon Sun, 19 Aug 2007 06:07:08 +0000 http://www.xaprb.com/blog/2007/05/17/mysql-table-sync-093-released/#comment-13316 Hi,

I tried out your tool but it seems like I can’t get it running.

I ssh tunneled my second mysql server through port 1100.

linux:~ # mysql-table-sync –print –debug sync:123@localhost:3306/stest.test sync:123@localhost:1100/stest.test
– SELECT /*source:`stest`.`test`*/ `id`, MD5(CONCAT_WS(‘#’, `id`,`type`,`client_id`,`agent_id`,`user_id`,`country_id`,`region_id`,`city_id`,`image_id_array`,`comment_id`,`category_id`,`extra_id_array`,`price`,`price2`,`price_currency`,`price_comment_id`,`visits`,`reality_size`,`living_space_size`,`situation_id`,`creation_date`,`map`,`name`,`name_id`,`seasons_id`,`promotion`,`note_id`,`short_comment_id`,`area_id`,`near_location`,`hidden`,`ge_location`,`l_price`,`h_price`,`price_timestamp`,`confirmnow`)) AS __crc FROM `stest`.`test` ORDER BY `id`
– SELECT /*dest:`stest`.`test`*/ `id`, MD5(CONCAT_WS(‘#’, `id`,`type`,`client_id`,`agent_id`,`user_id`,`country_id`,`region_id`,`city_id`,`image_id_array`,`comment_id`,`category_id`,`extra_id_array`,`price`,`price2`,`price_currency`,`price_comment_id`,`visits`,`reality_size`,`living_space_size`,`situation_id`,`creation_date`,`map`,`name`,`name_id`,`seasons_id`,`promotion`,`note_id`,`short_comment_id`,`area_id`,`near_location`,`hidden`,`ge_location`,`l_price`,`h_price`,`price_timestamp`,`confirmnow`)) AS __crc FROM `stest`.`test` ORDER BY `id`

Thanks for any help ..

Simon

]]>
By: Xaprb http://www.xaprb.com/blog/2007/05/17/mysql-table-sync-093-released/#comment-9765 Xaprb Wed, 30 May 2007 11:08:33 +0000 http://www.xaprb.com/blog/2007/05/17/mysql-table-sync-093-released/#comment-9765 No, it works on one table at a time. The idea is to use it to repair a table known to differ (see MySQL Table Checksum for an efficient way to check all tables for differences).

That said, it would be trivial to write a shell-script wrapper to run it against all tables, but as stated in the documentation, the script requires the insight of a smart person to tell it an efficient way to find and resolve the differences.

]]>
By: Mikko Koppanen http://www.xaprb.com/blog/2007/05/17/mysql-table-sync-093-released/#comment-9717 Mikko Koppanen Wed, 30 May 2007 07:40:08 +0000 http://www.xaprb.com/blog/2007/05/17/mysql-table-sync-093-released/#comment-9717 Is it possible to sync all tables inside a database somehow (without listing tables manually) or am I missing something?

]]>