Problem

mysql workbench에서 dumpUnknown table 'COLUMN_STATISTICS' in information_schema (1109) 에러 발생

Solution

  • Mysql Workbench 8.0.13 버전은 Data ExportAdvanced Options 에서 옵션을 변경하는 것이 가능했다.
  • 이후 최신 버전에서는 해당 옵션을 사용할 수 없다.
    • /Applications/MySQLWorkbench.app/Contents/Resources/plugins/wb_admin_export.py1 파일을 수정해서 1767 라인에 --column-statistics=0를 추가해서 해결할 수 있다.
1749         if save_to_folder:
1750             if not os.path.exists(self.path):
1751                 try:
1752                     os.makedirs(self.path, mode=0o700)
1753                 except:
1754                     Utilities.show_error('Error', 'Access to "%s" failed' % self.path, "OK", "", "")
1755                     self.export_button.set_enabled(True)
1756                     return
1757             for schema, tables in schemas_to_dump:
1758                 views = []
1759                 for table in tables:
1760                     if self.table_list_model.is_view(schema, table):
1761                         views.append(table)
1762                     else:
1763                         title = "Dumping " + schema
1764                         title += " (%s)" % table
1765                         # description, object_count, pipe_factory, extra_args, objects
1766                         args = []
1767                         args.append('--column-statistics=0')
1768                         if not dump_triggers:
1769                             args.append('--skip-triggers')
1770
1771                         if skip_table_structure:
1772                             args.append('--no-create-info')
1773
1774                         if skip_column_statistics:
1775                             args.append('--skip-column-statistics')
1776
1777                         include_schema = self.include_schema_check.get_active()
1778                         if skip_data:
1779                             task = self.TableDumpNoData(schema,table, args, lambda schema=schema,table=table:self.dump_to_folder(schema, table, include_schema))
1780                         else:
1781                             task = self.TableDumpData(schema,table, args, lambda schema=schema,table=table:self.dump_to_folder(schema, table, include_schema))
1782                         operations.append(task)
1783                 # dump everything non-tables to file for routines
1784                 #if views:
1785                 #    task = self.ViewDumpData(schema, views, lambda schema=schema, table=table:self.dump_to_folder(schema, "routines"))

References