tencent cloud

Data Transfer Service

Peripheral Checks

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-11-05 10:31:39
Diterjemahkan & Diperiksa oleh AI

Checking Details

It is recommended to set the environment variable parameter innodb_stats_on_metadata to OFF on the source database.

Fix

Modifying the Parameter innodb_stats_on_metadata

Note:
innodb_stats_on_metadata: If this parameter is enabled, InnoDB updates the information_schema.statistics table whenever tables in the information_schema metadata database are queried, increasing access time. You can disable this parameter to accelerate access to schema databases and tables.
For MySQL versions earlier than 5.6.6, the preset value of the parameter innodb_stats_on_metadata is ON and must be changed to OFF. For MySQL 5.6.6 and later versions, the preset value is OFF, and no issue exists.
1. Log in to the source database.
2. Set innodb_stats_on_metadata to OFF.
set global innodb_stats_on_metadata = OFF;
3. Check whether the configuration has taken effect.
show global variables like '%innodb_stats_on_metadata%';
The system displays results similar to the following:
mysql> show global variables like '%innodb_stats_on_metadata%';
+--------------------------+-------+
| Variable_name | Value |
+--------------------------+-------+
| innodb_stats_on_metadata | OFF |
+--------------------------+-------+
1 row in set (0.00 sec)
4. Execute the check task again.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan