Browse Source

fix Unknown table 'COLUMN_STATISTICS' error

Olivier Massot 5 years ago
parent
commit
9016c41e05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      clonedb.py

+ 1 - 1
clonedb.py

@@ -317,7 +317,7 @@ class CloningOperation:
 
         try:
             self.from_server.exec_query("SELECT COLUMN_NAME FROM information_schema.COLUMN_STATISTICS;")
-        except pymysql.err.OperationalError:
+        except pymysql.err.MySQLError:
             # fix the occasional 'Unknown table 'COLUMN_STATISTICS' in information_schema' bug
             base_cmd.append("--column-statistics=0")