innodb mysql日志报错

2018-05-04 08:57:22 7f90d5ddd700 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
2018-05-04 08:57:22 7f90d5ddd700 InnoDB: Error: Fetch of persistent statistics requested for table "tistone_quartz"."qrtz_blob_triggers" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
2018-05-04 08:57:24 7f90d5ddd700 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
2018-05-04 08:57:24 7f90d5ddd700 InnoDB: Error: Fetch of persistent statistics requested for table "tistone_quartz"."qrtz_calendars" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
2018-05-04 08:57:25 7f90d5ddd700 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
2018-05-04 08:57:25 7f90d5ddd700 InnoDB: Error: Fetch of persistent statistics requested for table "tistone_quartz"."qrtz_cron_triggers" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
2018-05-04 08:57:26 7f90d5ddd700 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
2018-05-04 08:57:26 7f90d5ddd700 InnoDB: Error: Fetch of persistent statistics requested for table "tistone_quartz"."qrtz_job_details" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
2018-05-04 08:57:27 7f90d5ddd700 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
2018-05-04 08:57:27 7f90d5ddd700 InnoDB: Error: Fetch of persistent statistics requested for table "tistone_quartz"."qrtz_paused_trigger_grps" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
2018-05-04 08:57:29 7f90d5ddd700 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
2018-05-04 08:57:29 7f90d5ddd700 InnoDB: Error: Fetch of persistent statistics requested for table "tistone_quartz"."qrtz_simprop_triggers" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
2018-05-04 08:57:30 7f90d5ddd700 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.

2018-05-04 08:57:30 7f90d5ddd700 InnoDB: Error: Fetch of persistent statistics requested for table "tistone_quartz"."qrtz_simple_triggers" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.



------------------------------------解决方式---------------------------------------

1.删除mysql数据库如下表的.frm 和 .idb文件(innodb_index_stats innodb_table_stats slave_master_info slave_relay_log_info slave_worker_info)

2.新建这五个数据表

 DROP TABLE IF EXISTS innodb_index_stats; 
CREATE TABLE `innodb_index_stats` (
  `database_name` VARCHAR(64) COLLATE utf8_bin NOT NULL,
  `table_name` VARCHAR(64) COLLATE utf8_bin NOT NULL,
  `index_name` VARCHAR(64) COLLATE utf8_bin NOT NULL,
  `last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `stat_name` VARCHAR(64) COLLATE utf8_bin NOT NULL,
  `stat_value` BIGINT(20) UNSIGNED NOT NULL,
  `sample_size` BIGINT(20) UNSIGNED DEFAULT NULL,
  `stat_description` VARCHAR(1024) COLLATE utf8_bin NOT NULL,
  PRIMARY KEY (`database_name`,`table_name`,`index_name`,`stat_name`)
) ENGINE=INNODB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;


 DROP TABLE IF EXISTS innodb_table_stats; 
CREATE TABLE `innodb_table_stats` (
  `database_name` VARCHAR(64) COLLATE utf8_bin NOT NULL,
  `table_name` VARCHAR(64) COLLATE utf8_bin NOT NULL,
  `last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `n_rows` BIGINT(20) UNSIGNED NOT NULL,
  `clustered_index_size` BIGINT(20) UNSIGNED NOT NULL,
  `sum_of_other_index_sizes` BIGINT(20) UNSIGNED NOT NULL,
  PRIMARY KEY (`database_name`,`table_name`)
) ENGINE=INNODB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;


 DROP TABLE IF EXISTS slave_master_info; 
CREATE TABLE `slave_master_info` (
  `Number_of_lines` INT(10) UNSIGNED NOT NULL COMMENT 'Number of lines in the file.',
  `Master_log_name` TEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log currently being read from the master.',
  `Master_log_pos` BIGINT(20) UNSIGNED NOT NULL COMMENT 'The master log position of the last read event.',
  `Host` CHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'The host name of the master.',
  `User_name` TEXT CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The user name used to connect to the master.',
  `User_password` TEXT CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The password used to connect to the master.',
  `Port` INT(10) UNSIGNED NOT NULL COMMENT 'The network port used to connect to the master.',
  `Connect_retry` INT(10) UNSIGNED NOT NULL COMMENT 'The period (in seconds) that the slave will wait before trying to reconnect to the master.',
  `Enabled_ssl` TINYINT(1) NOT NULL COMMENT 'Indicates whether the server supports SSL connections.',
  `Ssl_ca` TEXT CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Authority (CA) certificate.',
  `Ssl_capath` TEXT CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path to the Certificate Authority (CA) certificates.',
  `Ssl_cert` TEXT CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL certificate file.',
  `Ssl_cipher` TEXT CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the cipher in use for the SSL connection.',
  `Ssl_key` TEXT CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL key file.',
  `Ssl_verify_server_cert` TINYINT(1) NOT NULL COMMENT 'Whether to verify the server certificate.',
  `Heartbeat` FLOAT NOT NULL,
  `Bind` TEXT CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'Displays which interface is employed when connecting to the MySQL server',
  `Ignored_server_ids` TEXT CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The number of server IDs to be ignored, followed by the actual server IDs',
  `Uuid` TEXT CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The master server uuid.',
  `Retry_count` BIGINT(20) UNSIGNED NOT NULL COMMENT 'Number of reconnect attempts, to the master, before giving up.',
  `Ssl_crl` TEXT CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Revocation List (CRL)',
  `Ssl_crlpath` TEXT CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path used for Certificate Revocation List (CRL) files',
  `Enabled_auto_position` TINYINT(1) NOT NULL COMMENT 'Indicates whether GTIDs will be used to retrieve events from the master.',
  PRIMARY KEY (`Host`,`Port`)
) ENGINE=INNODB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Master Information';




 DROP TABLE IF EXISTS slave_relay_log_info; 
CREATE TABLE `slave_relay_log_info` (
  `Number_of_lines` INT(10) UNSIGNED NOT NULL COMMENT 'Number of lines in the file or rows in the table. Used to version table definitions.',
  `Relay_log_name` TEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the current relay log file.',
  `Relay_log_pos` BIGINT(20) UNSIGNED NOT NULL COMMENT 'The relay log position of the last executed event.',
  `Master_log_name` TEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log file from which the events in the relay log file were read.',
  `Master_log_pos` BIGINT(20) UNSIGNED NOT NULL COMMENT 'The master log position of the last executed event.',
  `Sql_delay` INT(11) NOT NULL COMMENT 'The number of seconds that the slave must lag behind the master.',
  `Number_of_workers` INT(10) UNSIGNED NOT NULL,
  `Id` INT(10) UNSIGNED NOT NULL COMMENT 'Internal Id that uniquely identifies this record.',
  PRIMARY KEY (`Id`)
) ENGINE=INNODB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Relay Log Information';


 DROP TABLE IF EXISTS slave_worker_info; 
CREATE TABLE `slave_worker_info` (
  `Id` INT(10) UNSIGNED NOT NULL,
  `Relay_log_name` TEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `Relay_log_pos` BIGINT(20) UNSIGNED NOT NULL,
  `Master_log_name` TEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `Master_log_pos` BIGINT(20) UNSIGNED NOT NULL,
  `Checkpoint_relay_log_name` TEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `Checkpoint_relay_log_pos` BIGINT(20) UNSIGNED NOT NULL,
  `Checkpoint_master_log_name` TEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `Checkpoint_master_log_pos` BIGINT(20) UNSIGNED NOT NULL,
  `Checkpoint_seqno` INT(10) UNSIGNED NOT NULL,
  `Checkpoint_group_size` INT(10) UNSIGNED NOT NULL,
  `Checkpoint_group_bitmap` BLOB NOT NULL,
  PRIMARY KEY (`Id`)

) ENGINE=INNODB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Worker Information';


3.重启mysql

猜你喜欢

转载自blog.csdn.net/ym563099457/article/details/80195331
今日推荐