Я использую утилиту mysqldbcompare, но при запуске она всегда останавливается через определенный промежуток времени. Ниже приведена команда, которую я использую.
mysqldbcompare --server1=user:'password'@slave1.xxxxxxxx.us-east-1.rds.amazonaws.com --server2=user:'password'@52.7.165.252 db_1:db_2 --run-all-tests --skip-data-check
Она показывает некоторые результаты и через некоторое время показывает ошибку ()
# WARNING: Using a password on the command line interface can be insecure.
# server1 on slave1.xxxxx.us-east-1.rds.amazonaws.com: ... connected.
# server2 on 52.7.165.252: ... connected.
# Checking databases db_ignitedminds on server1 and db_ignitedminds_testing on server2
#
# Object definitions differ. (--changes-for=server1)
#
--- `db_ignitedminds`
+++ `db_ignitedminds_testing`
@@ -1 +1 @@
-CREATE DATABASE `db_1` /*!40100 DEFAULT CHARACTER SET latin1 */
+CREATE DATABASE `db_2` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE
utf8_unicode_ci */
Traceback (most recent call last):
File "/usr/bin/mysqldbcompare", line 413, in <module>
db1, db2, options)
File "/usr/lib/python2.7/dist-packages/mysql/utilities/command/dbcompare.py", line 443, in database_compare
server1_sql_mode = server1.select_variable("SQL_MODE")
File "/usr/lib/python2.7/dist-packages/mysql/utilities/common/server.py", line 1373, in
select_variable
res = self.exec_query("SELECT @@{0}{1}".format(var_type, var_name))
File "/usr/lib/python2.7/dist-packages/mysql/utilities/common/server.py", line 1244, in exec_query
cursor_class=MySQLUtilsCursorBufferedRaw)
File "/usr/lib/python2.7/dist-packages/mysql/connector/connection.py", line 813, in cursor
raise errors.OperationalError("MySQL Connection not available.")
**mysql.connector.errors.OperationalError: MySQL Connection not available**.
, пожалуйста, помогите решить ее.