我正在尝试使用 mysqldbcompare 实用程序比较两个本地数据库。检查总是显示数据库一致性检查失败。我试过检查和修复命令。但无济于事。
我使用了以下代码并得到
C:\Program Files\MySQL\MySQL Workbench CE 5.2.47\utilities>mysqldbcompare --s
erver1=root@localhost --server2=root@localhost ebookshop:ebookpub --run-all-tests
# server1 on localhost: ... connected.
# server2 on localhost: ... connected.
# Checking databases ebookshop on server1 and ebookpub on server2
#
# Object definitions differ. (--changes-for=server1)
#
--- ebookshop
+++ ebookpub
@@ -1,1 +1,1 @@
-CREATE DATABASE `ebookshop` /*!40100 DEFAULT CHARACTER SET latin1 */
+CREATE DATABASE `ebookpub` /*!40100 DEFAULT CHARACTER SET latin1 */
# WARNING: Objects in server1.ebookshop but not in server1.ebookpub:
# TABLE: books
#
# WARNING: Objects in server1.ebookpub but not in server1.ebookshop:
# TABLE: books1
#
# Defn Row Data
# Type Object Name Diff Count Check
# -------------------------------------------------------------------------
# Database consistency check failed.
#
# ...done
我对这个领域相当陌生。非常感谢您的帮助。