1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關(guān)咨詢
      選擇下列產(chǎn)品馬上在線溝通
      服務(wù)時間:8:30-17:00
      你可能遇到了下面的問題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
      'mysql.column_stats'doesn'texistandTable'mysql.index_stats'doesn'
      在生產(chǎn)庫MariabDB中修改字段類型,提示如下錯誤:
      Table 'MySQL.column_stats' doesn't exist
      Table 'mysql.index_stats' doesn't exist


      MariaDB版本如下:
      MariaDB [mysql]> select @@version;
      +---------------------+
      | @@version           |
      +---------------------+
      | 10.0.12-MariaDB-log |
      +---------------------+


      連接mysql數(shù)據(jù)庫檢查表:
      MariaDB [mysql]> show tables;
      +---------------------------+
      | Tables_in_mysql           |
      +---------------------------+
      | columns_priv              |
      | db                        |
      | event                     |
      | func                      |
      | general_log               |
      | gtid_slave_pos            |
      | help_category             |
      | help_keyword              |
      | help_relation             |
      | help_topic                |
      | host                      |
      | innodb_index_stats        |
      | innodb_table_stats        |
      | inventory                 |
      | ndb_binlog_index          |
      | plugin                    |
      | proc                      |
      | procs_priv                |
      | proxies_priv              |
      | servers                   |
      | slave_master_info         |
      | slave_relay_log_info      |
      | slave_worker_info         |
      | slow_log                  |
      | tables_priv               |
      | time_zone                 |
      | time_zone_leap_second     |
      | time_zone_name            |
      | time_zone_transition      |
      | time_zone_transition_type |
      | user                      |
      +---------------------------+


      檢查發(fā)現(xiàn)缺少提示錯誤的幾張表,column_stats、index_stats、table_stats


      解決方法:
      在主庫創(chuàng)建以上表:
      CREATE TABLE IF NOT EXISTS `column_stats` (
      `db_name` varchar(64) NOT NULL COMMENT 'Database the table is in.',
      `table_name` varchar(64) NOT NULL COMMENT 'Table name.',
      `column_name` varchar(64) NOT NULL COMMENT 'Name of the column.',
      `min_value` varchar(255) DEFAULT NULL COMMENT 'Minimum value in the table (in text form).',
      `max_value` varchar(255) NOT NULL COMMENT 'Maximum value in the table (in text form).',
      `nulls_ratio` decimal(12,4) DEFAULT NULL COMMENT 'Fraction of NULL values (0 - no NULLs, 0.5 - half values are NULLs, 1 - all values are NULLs).',
      `avg_length` decimal(12,4) DEFAULT NULL COMMENT 'Average length of column value, in bytes. Counted as if one ran SELECT AVG(LENGTH(col)). This doesn''t count NULL bytes, assumes endspace removal for CHAR(n), etc.',
      `avg_frequency` decimal(12,4) DEFAULT NULL COMMENT 'Average number of records with the same value',
      `hist_size` tinyint(3) unsigned DEFAULT NULL COMMENT 'Histogram size in bytes, from 0-255.',
      `hist_type` enum('SINGLE_PREC_HB','DOUBLE_PREC_HB') DEFAULT NULL COMMENT 'Histogram type. See the histogram_type system variable.',
      `histogram` varbinary(255) DEFAULT NULL
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8;


      CREATE TABLE IF NOT EXISTS `index_stats` (
      `db_name` varchar(64) NOT NULL COMMENT 'Database the table is in.',
      `table_name` varchar(64) NOT NULL COMMENT 'Table name',
      `index_name` varchar(64) NOT NULL COMMENT 'Name of the index',
      `prefix_arity` int(10) unsigned NOT NULL COMMENT 'Index prefix length. 1 for the first keypart, 2 for the first two, and so on. InnoDB''s extended keys are supported.',
      `avg_frequency` decimal(12,4) DEFAULT NULL COMMENT 'Average number of records one will find for given values of (keypart1, keypart2, ..), provided the values will be found in the table.'
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8;


      CREATE TABLE IF NOT EXISTS `table_stats` (
      `db_name` varchar(64) NOT NULL COMMENT 'Database the table is in .',
      `table_name` varchar(64) NOT NULL COMMENT 'Table name.',
      `cardinality` bigint(21) DEFAULT NULL COMMENT 'Number of records in the table.'
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8;


      ALTER TABLE `column_stats`
      ADD PRIMARY KEY (`db_name`,`table_name`,`column_name`);


      ALTER TABLE `index_stats`
      ADD PRIMARY KEY (`db_name`,`table_name`,`index_name`,`prefix_arity`);


      ALTER TABLE `table_stats`
      ADD PRIMARY KEY (`db_name`,`table_name`);



      本文標(biāo)題:'mysql.column_stats'doesn'texistandTable'mysql.index_stats'doesn'
      網(wǎng)頁地址:http://www.ef60e0e.cn/article/gjcohs.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
      1. <ul id="0c1fb"></ul>

        <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
        <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

        金山区| 兴业县| 湖州市| 谢通门县| 香港| 舟曲县| 朝阳市| 冕宁县| 白河县| 商都县| 安阳县| 静宁县| 沙雅县| 大港区| 都兰县| 南靖县| 杭锦后旗| 西畴县| 泽库县| 彩票| 阿鲁科尔沁旗| 阿坝| 青海省| 防城港市| 甘肃省| 武义县| 藁城市| 塔河县| 八宿县| 兴文县| 东海县| 鸡东县| 紫金县| 姜堰市| 绍兴县| 静安区| 资阳市| 阿荣旗| 朝阳区| 大埔区| 育儿|