Running pt-table-checksum on a table in different databases
-
31-10-2019 - |
문제
I'm using filters for replication:
replicate-wild-do-table = test_slave.%
replicate-rewrite-db = test->test_slave
Is there an option to specify different DB name on slave for "pt-table-checksum"
pt-table-checksum --host=localhost --databases=test --max-load=Threads_connected:25 --no-check-replication-filters
EDIT 1:
mysql> SELECT COUNT(*) FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'test_slave';
+----------+
| COUNT(*) |
+----------+
| 145 |
+----------+
1 row in set (0.00 sec)
mysql> SELECT COUNT(*) FROM percona.checksums;
+----------+
| COUNT(*) |
+----------+
| 40 |
+----------+
1 row in set (0.00 sec)
EDIT 2:
# ls -l *.frm | wc -l
145
# ls -l | awk '{print $3,$4}' | uniq
mysql mysql
It's also complaining that two tables have no indexes and are oversized. It looks like it's just skipping some tables?
올바른 솔루션이 없습니다
제휴하지 않습니다 dba.stackexchange