|
@@ -315,11 +315,14 @@ class CloningOperation:
|
|
|
"--skip-comments"
|
|
"--skip-comments"
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
|
|
+ # <-- fix the occasional 'Unknown table 'COLUMN_STATISTICS' in information_schema' bug
|
|
|
try:
|
|
try:
|
|
|
self.from_server.exec_query("SELECT COLUMN_NAME FROM information_schema.COLUMN_STATISTICS;")
|
|
self.from_server.exec_query("SELECT COLUMN_NAME FROM information_schema.COLUMN_STATISTICS;")
|
|
|
- except pymysql.err.MySQLError:
|
|
|
|
|
- # fix the occasional 'Unknown table 'COLUMN_STATISTICS' in information_schema' bug
|
|
|
|
|
|
|
+ except pymysql.err.OperationalError:
|
|
|
base_cmd.append("--column-statistics=0")
|
|
base_cmd.append("--column-statistics=0")
|
|
|
|
|
+ except pymysql.err.MySQLError:
|
|
|
|
|
+ pass
|
|
|
|
|
+ # -->
|
|
|
|
|
|
|
|
if self.compress:
|
|
if self.compress:
|
|
|
base_cmd.append("--compress")
|
|
base_cmd.append("--compress")
|