Форум OlegON > Программы и оборудование для автоматизации торговли > Кассовые программы > УКМ-4

Ошибки "InnoDB: Error: Table "mysql"."innodb_table_stats" not found" в логе укм 4 : УКМ-4

20.04.2024 13:37


20.04.2018 13:49
Cyber
 
В логах mysql

2018-04-20 15:42:30 5908 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-04-20 15:42:30 5908 [Note] InnoDB: Not using CPU crc32 instructions
2018-04-20 15:42:30 5908 [Note] InnoDB: Initializing buffer pool, size = 80.0M
2018-04-20 15:42:30 5908 [Note] InnoDB: Completed initialization of buffer pool
2018-04-20 15:42:30 5908 [Note] InnoDB: Highest supported file format is Barracuda.
2018-04-20 15:42:31 5908 [Note] InnoDB: 128 rollback segment(s) are active.
2018-04-20 15:42:31 5908 [Note] InnoDB: Waiting for purge to start
2018-04-20 15:42:31 5908 [Note] InnoDB: 5.6.17 started; log sequence number 353189048
2018-04-20 15:42:31 5908 [Note] Server hostname (bind-address): '*'; port: 3306
2018-04-20 15:42:31 5908 [Note] IPv6 is available.
2018-04-20 15:42:31 5908 [Note] - '::' resolves to '::';
2018-04-20 15:42:31 5908 [Note] Server socket created on IP: '::'.
2018-04-20 15:42:31 5908 [Note] Event Scheduler: Loaded 0 events
2018-04-20 15:42:31 5908 [Note] MySQL: ready for connections.
Version: '5.6.17' socket: '' port: 3306 MySQL Community Server (GPL)
2018-04-20 15:43:09 1170 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
2018-04-20 15:43:09 1170 InnoDB: Error: Fetch of persistent statistics requested for table "ukmserver"."local_server_param" 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-04-20 15:43:09 10f8 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
2018-04-20 15:43:09 10f8 InnoDB: Error: Fetch of persistent statistics requested for table "ukmserver"."mon_categories" 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-04-20 15:43:10 10f8 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
2018-04-20 15:43:10 10f8 InnoDB: Error: Fetch of persistent statistics requested for table "ukmserver"."mon_values" 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-04-20 15:43:43 1170 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.

Сервак работает вроде всё норм,но хотелось бы убрать это из лога.
20.04.2018 13:58
Mtirt
 
По названию таблиц решение гуглится очень быстро.
Нужно пересоздать таблицы статитстики.
20.04.2018 13:59
OlegON
 
При апгрейде MySQL не пересоздаются таблицы
Цитата:
innodb_index_stats, innodb_table_stats, slave_master_info, slave_relay_log_info, slave_worker_info
сначала сделай бекап базы, потом дропни их и убедись, что соответствующие .ibd и .frm пропали. И создавай таблички заново.
SQL код:
USE mysql;
CREATE TABLE `innodb_index_stats` (
  `
database_namevarchar(64COLLATE utf8_bin NOT NULL,
  `
table_namevarchar(64COLLATE utf8_bin NOT NULL,
  `
index_namevarchar(64COLLATE utf8_bin NOT NULL,
  `
last_updatetimestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `
stat_namevarchar(64COLLATE utf8_bin NOT NULL,
  `
stat_valuebigint(20unsigned NOT NULL,
  `
sample_sizebigint(20unsigned DEFAULT NULL,
  `
stat_descriptionvarchar(1024COLLATE 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
SQL код:
USE mysql;
CREATE TABLE `innodb_table_stats` (
  `
database_namevarchar(64COLLATE utf8_bin NOT NULL,
  `
table_namevarchar(64COLLATE utf8_bin NOT NULL,
  `
last_updatetimestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `
n_rowsbigint(20unsigned NOT NULL,
  `
clustered_index_sizebigint(20unsigned NOT NULL,
  `
sum_of_other_index_sizesbigint(20unsigned NOT NULL,
  
PRIMARY KEY (`database_name`,`table_name`)
ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0
SQL код:
USE mysql;
CREATE TABLE `slave_master_info` (
  `
Number_of_linesint(10unsigned NOT NULL COMMENT 'Number of lines in the file.',
  `
Master_log_nametext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log currently being read from the master.',
  `
Master_log_posbigint(20unsigned NOT NULL COMMENT 'The master log position of the last read event.',
  `
Hostchar(64CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'The host name of the master.',
  `
User_nametext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The user name used to connect to the master.',
  `
User_passwordtext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The password used to connect to the master.',
  `
Portint(10unsigned NOT NULL COMMENT 'The network port used to connect to the master.',
  `
Connect_retryint(10unsigned NOT NULL COMMENT 'The period (in seconds) that the slave will wait before trying to reconnect to the master.',
  `
Enabled_ssltinyint(1NOT NULL COMMENT 'Indicates whether the server supports SSL connections.',
  `
Ssl_catext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Authority (CA) certificate.',
  `
Ssl_capathtext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path to the Certificate Authority (CA) certificates.',
  `
Ssl_certtext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL certificate file.',
  `
Ssl_ciphertext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the cipher in use for the SSL connection.',
  `
Ssl_keytext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL key file.',
  `
Ssl_verify_server_certtinyint(1NOT NULL COMMENT 'Whether to verify the server certificate.',
  `
Heartbeatfloat NOT NULL,
  `
Bindtext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'Displays which interface is employed when connecting to the MySQL server',
  `
Ignored_server_idstext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The number of server IDs to be ignored, followed by the actual server IDs',
  `
Uuidtext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The master server uuid.',
  `
Retry_countbigint(20unsigned NOT NULL COMMENT 'Number of reconnect attempts, to the master, before giving up.',
  `
Ssl_crltext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Revocation List (CRL)',
  `
Ssl_crlpathtext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path used for Certificate Revocation List (CRL) files',
  `
Enabled_auto_positiontinyint(1NOT 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'
SQL код:
USE mysql;
CREATE TABLE `slave_relay_log_info` (
  `
Number_of_linesint(10unsigned NOT NULL COMMENT 'Number of lines in the file or rows in the table. Used to version table definitions.',
  `
Relay_log_nametext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the current relay log file.',
  `
Relay_log_posbigint(20unsigned NOT NULL COMMENT 'The relay log position of the last executed event.',
  `
Master_log_nametext 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_posbigint(20unsigned NOT NULL COMMENT 'The master log position of the last executed event.',
  `
Sql_delayint(11NOT NULL COMMENT 'The number of seconds that the slave must lag behind the master.',
  `
Number_of_workersint(10unsigned NOT NULL,
  `
Idint(10unsigned 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'
SQL код:
USE mysql;
CREATE TABLE `slave_worker_info` (
  `
Idint(10unsigned NOT NULL,
  `
Relay_log_nametext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `
Relay_log_posbigint(20unsigned NOT NULL,
  `
Master_log_nametext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `
Master_log_posbigint(20unsigned NOT NULL,
  `
Checkpoint_relay_log_nametext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `
Checkpoint_relay_log_posbigint(20unsigned NOT NULL,
  `
Checkpoint_master_log_nametext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `
Checkpoint_master_log_posbigint(20unsigned NOT NULL,
  `
Checkpoint_seqnoint(10unsigned NOT NULL,
  `
Checkpoint_group_sizeint(10unsigned NOT NULL,
  `
Checkpoint_group_bitmapblob NOT NULL,
  
PRIMARY KEY (`Id`)
ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Worker Information'
20.04.2018 21:44
Cyber
 
Цитата:
OlegON При апгрейде MySQL не пересоздаются таблицы

сначала сделай бекап базы, потом дропни их и убедись, что соответствующие .ibd и .frm пропали. И создавай таблички заново.
SQL код:
USE mysql;
CREATE TABLE `innodb_index_stats` (
  `
database_namevarchar(64COLLATE utf8_bin NOT NULL,
  `
table_namevarchar(64COLLATE utf8_bin NOT NULL,
  `
index_namevarchar(64COLLATE utf8_bin NOT NULL,
  `
last_updatetimestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `
stat_namevarchar(64COLLATE utf8_bin NOT NULL,
  `
stat_valuebigint(20unsigned NOT NULL,
  `
sample_sizebigint(20unsigned DEFAULT NULL,
  `
stat_descriptionvarchar(1024COLLATE 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
SQL код:
USE mysql;
CREATE TABLE `innodb_table_stats` (
  `
database_namevarchar(64COLLATE utf8_bin NOT NULL,
  `
table_namevarchar(64COLLATE utf8_bin NOT NULL,
  `
last_updatetimestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `
n_rowsbigint(20unsigned NOT NULL,
  `
clustered_index_sizebigint(20unsigned NOT NULL,
  `
sum_of_other_index_sizesbigint(20unsigned NOT NULL,
  
PRIMARY KEY (`database_name`,`table_name`)
ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0
SQL код:
USE mysql;
CREATE TABLE `slave_master_info` (
  `
Number_of_linesint(10unsigned NOT NULL COMMENT 'Number of lines in the file.',
  `
Master_log_nametext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log currently being read from the master.',
  `
Master_log_posbigint(20unsigned NOT NULL COMMENT 'The master log position of the last read event.',
  `
Hostchar(64CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'The host name of the master.',
  `
User_nametext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The user name used to connect to the master.',
  `
User_passwordtext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The password used to connect to the master.',
  `
Portint(10unsigned NOT NULL COMMENT 'The network port used to connect to the master.',
  `
Connect_retryint(10unsigned NOT NULL COMMENT 'The period (in seconds) that the slave will wait before trying to reconnect to the master.',
  `
Enabled_ssltinyint(1NOT NULL COMMENT 'Indicates whether the server supports SSL connections.',
  `
Ssl_catext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Authority (CA) certificate.',
  `
Ssl_capathtext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path to the Certificate Authority (CA) certificates.',
  `
Ssl_certtext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL certificate file.',
  `
Ssl_ciphertext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the cipher in use for the SSL connection.',
  `
Ssl_keytext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL key file.',
  `
Ssl_verify_server_certtinyint(1NOT NULL COMMENT 'Whether to verify the server certificate.',
  `
Heartbeatfloat NOT NULL,
  `
Bindtext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'Displays which interface is employed when connecting to the MySQL server',
  `
Ignored_server_idstext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The number of server IDs to be ignored, followed by the actual server IDs',
  `
Uuidtext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The master server uuid.',
  `
Retry_countbigint(20unsigned NOT NULL COMMENT 'Number of reconnect attempts, to the master, before giving up.',
  `
Ssl_crltext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Revocation List (CRL)',
  `
Ssl_crlpathtext CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path used for Certificate Revocation List (CRL) files',
  `
Enabled_auto_positiontinyint(1NOT 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'
SQL код:
USE mysql;
CREATE TABLE `slave_relay_log_info` (
  `
Number_of_linesint(10unsigned NOT NULL COMMENT 'Number of lines in the file or rows in the table. Used to version table definitions.',
  `
Relay_log_nametext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the current relay log file.',
  `
Relay_log_posbigint(20unsigned NOT NULL COMMENT 'The relay log position of the last executed event.',
  `
Master_log_nametext 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_posbigint(20unsigned NOT NULL COMMENT 'The master log position of the last executed event.',
  `
Sql_delayint(11NOT NULL COMMENT 'The number of seconds that the slave must lag behind the master.',
  `
Number_of_workersint(10unsigned NOT NULL,
  `
Idint(10unsigned 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'
SQL код:
USE mysql;
CREATE TABLE `slave_worker_info` (
  `
Idint(10unsigned NOT NULL,
  `
Relay_log_nametext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `
Relay_log_posbigint(20unsigned NOT NULL,
  `
Master_log_nametext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `
Master_log_posbigint(20unsigned NOT NULL,
  `
Checkpoint_relay_log_nametext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `
Checkpoint_relay_log_posbigint(20unsigned NOT NULL,
  `
Checkpoint_master_log_nametext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `
Checkpoint_master_log_posbigint(20unsigned NOT NULL,
  `
Checkpoint_seqnoint(10unsigned NOT NULL,
  `
Checkpoint_group_sizeint(10unsigned NOT NULL,
  `
Checkpoint_group_bitmapblob NOT NULL,
  
PRIMARY KEY (`Id`)
ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Worker Information'
Спасибо помогло.
Часовой пояс GMT +3, время: 13:37.

Форум на базе vBulletin®
Copyright © Jelsoft Enterprises Ltd.
В случае заимствования информации гипертекстовая индексируемая ссылка на Форум обязательна.