使用单表覆盖虚拟表
    如果要覆盖的表名是mysql的系统表,比如 information_schema.statistics,先不要急着配置
    在mycat的客户端执行

    1. show create table information_schema.statistics

    这样,就会显示mycat内部虚拟表的建表语句

    然后在information_schema.schema.json写上刚才配置的建表语句就可以

    1. "statistics": {
    2. "createTableSQL":写上刚才显示的建表语句,
    3. "locality": {
    4. "schemaName": "information_schema",
    5. "tableName": "statistics",
    6. "targetName": "prototype"
    7. }

    为什么要这样配置?因为Alibaba Druid解析不了从mysql中读取的建表语句,导致报错,当然mycat也会进行一些推断修复,但是处理情况不完整