mysqldbcompare – 错误:对象列表在数据库之间有所不同
作者:互联网
我在跑:
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
# rpm -q mysql-server
mysql-server-5.1.73-3.el6_5.x86_64
#
和
mysql> SELECT VERSION();
+------------+
| VERSION() |
+------------+
| 5.1.73-log |
+------------+
1 row in set (0.00 sec)
mysql>
我正在尝试对两个mysql服务器运行mysqldbcompare并遇到以下错误:
$mysqldbcompare -vvv --server1=XXX:XXX@XXX:3306 --server2=XXX:XXX@XXX:3306 pressflow6:pressflow6
# server1 on XXX: ... connected.
# server2 on XXX: ... connected.
# Checking databases pressflow6 on server1 and pressflow6 on server2
#
ERROR: The list of objects differs among database pressflow6 and pressflow6.
$
我刚刚运行mysqldump将其导出到server1并将其导入server2,我可以在没有任何问题的情况下对其他数据库运行它.
任何想法为什么我无法成功运行mysqldbcompare?
解决方法:
检查两个数据库是否具有足够的权限以查看和选择表.
你可以做一个穷人的mysqldbcompare来检查:
mysqldump -d -h server1 -u user1 -ppassword1 pressflow6 > objects1.sql
mysqldump -d -h server2 -u user2 -ppassword2 pressflow6 > objects2.sql
diff objects1.sql objects2.sql
标签:mysql,mysql-5-1 来源: https://codeday.me/bug/20190806/1597418.html