GreatSQL社区

搜索

[待回复] gt-check 遇到特殊字符 "\" 同步失败

158 0 2024-10-14 16:12
gt-check 遇到特殊字符 "\" 同步失败

源库:
  1. CREATE DATABASE `testdb1` /*!40100 DEFAULT CHARACTER SET utf8 */ ;

  2. use testdb1;

  3. CREATE TABLE `t1` (

  4.   `id` int(11) DEFAULT NULL,

  5.   `addr` varchar(30) DEFAULT NULL

  6. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;



  7. INSERT INTO `t1` (`id`, `addr`) VALUES (1, '7#\\8#');



  8. (product)root@localhost [testdb1]> select * from t1;

  9. +----+-------+

  10. | id | addr  |

  11. +----+-------+

  12. |  1 | 7#\8# |

  13. +----+-------+

  14. 1 row in set (0.00 sec)
复制代码

目的库:
  1. (product)root@localhost [testdb1]> select * from t1;

  2. +----+------+

  3. | id | addr |

  4. +----+------+

  5. |  1 | 7#8# |   -- 同步过来的结果少了 ""

  6. +----+------+

  7. 1 row in set (0.00 sec)

复制代码



每次gt-checksum 的 Differences 都是 yes
  1. [root@localhost gt-checksum-1.2.1-linux-x86-64]# ./gt-checksum -f ./gc.conf

  2. -- gt-checksum init configuration files --

  3. -- gt-checksum init log files --

  4. -- gt-checksum init check parameter --

  5. -- gt-checksum init check table name --

  6. -- gt-checksum init check table column --

  7. -- gt-checksum init check table index column --

  8. -- gt-checksum init source and dest transaction snapshoot conn pool --

  9. -- gt-checksum init cehck table query plan and check data --

  10. begin checkSum index table TESTDB1.T1

  11. [█                    ]100%  task:       1/1

  12. table TESTDB1.T1 checksum complete



  13. ** gt-checksum Overview of results **

  14. Check time:  0.30s (Seconds)

  15. Schema  Table   IndexCol        checkMod        Rows    Differences     Datafix

  16. TESTDB1 T1      id              rows            1,0     yes             table  

复制代码


全部回复(0)
david058

1

主题

0

博客

3

贡献

新手上路

Rank: 1

积分
4

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

社区公众号
社区小助手
QQ群
GMT+8, 2024-10-26 11:24 , Processed in 0.015764 second(s), 9 queries , Redis On.
快速回复 返回顶部 返回列表