innodb data file per table

本文介绍了一种通过设置innodb_file_per_table选项来解决MySQL删除数据库后ibdata文件大小不变的问题,这种方法可以确保删除数据库时能有效回收磁盘空间。此外,还提供了详细的步骤指导如何在现有数据库中应用此设置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

One very interesting thing I noticed with MySQL was that if you delete a database, ibdata file doesn’t shrink by that much space to minimize disk usage. I deleted the database and checked usage of /usr/local/mysql/var folder and noticed that ibdata file is still the same size. So the problem I face now is, how do I claim back this space?

After searching for a bit on google about this problem, apparently only way you can do that is by exporting your mysql databases, delete ibdata1 file, import databases. This creates new ibdata file with correct space usage. Atleast there is a way to get around this issue. But honestly, too much pain on production boxes where we might be trying to remove old databases to reclaim some of the hard drive space.

An preventive measure one can use is to use option: innodb_file_per_table (’put innodb_file_per_table’ in your my.cnf file under [mysqld] section). This will create individual files for tables under database directory. So now when I delete the database, all the space is returned since the directory is now deleted along with database along with all the tables inside the directory. In my test after you put option innodb_file_per_table your my.cnf, you will have to still do export/import to be able to minimize disk usage and have the ability to delete database at your leisure without worrying about reclaiming the disk space. Here are the steps I took. DISCLAIMER: Please make backup of your data and use following steps at your own risk. Doing it on test server is HIGHLY recommended. Please don’t come back and tell me that you lost your data because you followed my steps. They work for me and they may not work for you !

That said, here are the steps:

  1. Add innodb_file_per_table in your my.cnf file under [mysqld] section
  2. run following commands at the prompt. Your path to binaries might be different.

#note: following assumes you are logged in as root
mkdir -p /temp #temp dir to save our sql dump
#lets make a backup of current database. -p is used if there is pw set
/usr/local/mysql/bin/mysqldump -R -q -p --all-databases > /temp/all.sql
#stop mysql so we can remove all the files in the dir
/etc/init.d/mysql stop
rm -fr /usr/local/mysql/var/* #remove all the files
/usr/local/mysql/bin/mysql_install_db #install default dbs
#change ownership so mysql user can read/write to/from files
chown -R mysql.mysql /usr/local/mysql/var/
#start mysql so we can import our dump
/etc/init.d/mysql start
#note there is no -p since defaults don't have mysql pw set
/usr/local/mysql/bin/mysql < /temp/all.sql
/etc/init.d/mysql restart

This should be all you need to do. At this point when you remove a database, it will delete the directory of the db and all the data contained within which in turn will give you your disk space back.

REMEMBER: Backup your data and be smart about using code found on internet. If you don’t know what you are doing, hire a consultant who does.

2025-06-19 13:54:33 10592 [Note] C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe: Normal shutdown 2025-06-19 13:54:33 10592 [Note] Giving 15 client threads a chance to die gracefully 2025-06-19 13:54:33 10592 [Note] Event Scheduler: Killing the scheduler thread, thread id 116 2025-06-19 13:54:33 10592 [Note] Event Scheduler: Waiting for the scheduler thread to reply 2025-06-19 13:54:33 10592 [Note] Event Scheduler: Stopped 2025-06-19 13:54:33 10592 [Note] Event Scheduler: Purging the queue. 2 events 2025-06-19 13:54:33 10592 [Note] Shutting down slave threads 2025-06-19 13:54:35 10592 [Note] Forcefully disconnecting 3 remaining clients 2025-06-19 13:54:35 10592 [Warning] C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe: Forcing close of thread 35 user: 'wcs' 2025-06-19 13:54:35 10592 [Warning] C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe: Forcing close of thread 8 user: 'wcs' 2025-06-19 13:54:35 10592 [Warning] C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe: Forcing close of thread 3729 user: 'wcs' 2025-06-19 13:54:35 10592 [Note] Binlog end 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'partition' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_SYS_FIELDS' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_SYS_INDEXES' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_SYS_TABLES' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_FT_CONFIG' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_FT_DELETED' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_METRICS' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_CMPMEM' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_CMP_RESET' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_CMP' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_LOCK_WAITS' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_LOCKS' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'INNODB_TRX' 2025-06-19 13:54:35 10592 [Note] Shutting down plugin 'InnoDB' 2025-06-19 13:54:35 10592 [Note] InnoDB: FTS optimize thread exiting. 2025-06-19 13:54:35 10592 [Note] InnoDB: Starting shutdown... 2025-06-19 13:54:37 10592 [Note] InnoDB: Shutdown completed; log sequence number 31950984072 2025-06-19 13:54:37 10592 [Note] Shutting down plugin 'BLACKHOLE' 2025-06-19 13:54:37 10592 [Note] Shutting down plugin 'ARCHIVE' 2025-06-19 13:54:37 10592 [Note] Shutting down plugin 'MRG_MYISAM' 2025-06-19 13:54:37 10592 [Note] Shutting down plugin 'MyISAM' 2025-06-19 13:54:37 10592 [Note] Shutting down plugin 'MEMORY' 2025-06-19 13:54:37 10592 [Note] Shutting down plugin 'CSV' 2025-06-19 13:54:37 10592 [Note] Shutting down plugin 'sha256_password' 2025-06-19 13:54:37 10592 [Note] Shutting down plugin 'mysql_old_password' 2025-06-19 13:54:37 10592 [Note] Shutting down plugin 'mysql_native_password' 2025-06-19 13:54:37 10592 [Note] Shutting down plugin 'binlog' 2025-06-19 13:54:37 10592 [Note] C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe: Shutdown complete 2025-06-19 13:54:38 3896 [Note] Plugin 'FEDERATED' is disabled. 2025-06-19 13:54:38 289c InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator. 2025-06-19 13:54:38 3896 [Note] InnoDB: Using atomics to ref count buffer pool pages 2025-06-19 13:54:38 3896 [Note] InnoDB: The InnoDB memory heap is disabled 2025-06-19 13:54:38 3896 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 2025-06-19 13:54:38 3896 [Note] InnoDB: Memory barrier is not used 2025-06-19 13:54:38 3896 [Note] InnoDB: Compressed tables use zlib 1.2.3 2025-06-19 13:54:38 3896 [Note] InnoDB: Not using CPU crc32 instructions 2025-06-19 13:54:38 3896 [Note] InnoDB: Initializing buffer pool, size = 8.0G 2025-06-19 13:54:38 3896 [Note] InnoDB: Completed initialization of buffer pool 2025-06-19 13:54:38 3896 [Note] InnoDB: Highest supported file format is Barracuda. 2025-06-19 13:54:39 3896 [Note] InnoDB: 128 rollback segment(s) are active. 2025-06-19 13:54:39 3896 [Note] InnoDB: Waiting for purge to start 2025-06-19 13:54:39 3896 [Note] InnoDB: 5.6.21 started; log sequence number 31950984072 2025-06-19 13:54:39 3896 [Note] Server hostname (bind-address): '*'; port: 3306 2025-06-19 13:54:39 3896 [Note] IPv6 is available. 2025-06-19 13:54:39 3896 [Note] - '::' resolves to '::'; 2025-06-19 13:54:39 3896 [Note] Server socket created on IP: '::'. 2025-06-19 13:54:39 3896 [Warning] InnoDB: Cannot open table mysql/slave_master_info from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem. 2025-06-19 13:54:39 3896 [Warning] Info table is not ready to be used. Table 'mysql.slave_master_info' cannot be opened. 2025-06-19 13:54:39 3896 [Warning] InnoDB: Cannot open table mysql/slave_worker_info from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem. 2025-06-19 13:54:39 3896 [Warning] InnoDB: Cannot open table mysql/slave_relay_log_info from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem. 2025-06-19 13:54:39 3896 [Warning] Info table is not ready to be used. Table 'mysql.slave_relay_log_info' cannot be opened. 2025-06-19 13:54:39 3896 [Note] Event Scheduler: Loaded 2 events 2025-06-19 13:54:39 3896 [Note] C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe: ready for connections. Version: '5.6.21-log' socket: '' port: 3306 MySQL Community Server (GPL) 2025-06-19 13:54:39 3896 [Warning] Hostname 'DESKTOP-56G0R2L' does not resolve to '11.1.85.22'. 2025-06-19 13:54:39 3896 [Warning] Hostname 'DESKTOP-56G0R2L' does not resolve to '11.1.85.22'. 2025-06-19 13:54:39 3896 [Note] Hostname 'DESKTOP-56G0R2L' has the following IP addresses: 2025-06-19 13:54:39 3896 [Note] Hostname 'DESKTOP-56G0R2L' has the following IP addresses: 2025-06-19 13:54:39 3896 [Note] - fe80::659c:c088:9d63:4346%17 2025-06-19 13:54:39 3896 [Note] - fe80::659c:c088:9d63:4346%17 2025-06-19 13:54:39 3896 [Note] - 11.1.85.24 2025-06-19 13:54:39 3896 [Note] - 169.254.119.0 2025-06-19 13:54:39 26c InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:39 26c2025-06-19 13:54:39 2a90 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:39 2a90 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."feedercameradata" 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. InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."feedercameradata" 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. 2025-06-19 13:54:39 2cb0 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:39 2cb0 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."alreadysortinfo" 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. 2025-06-19 13:54:39 2028 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:39 20282025-06-19 13:54:39 249c InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:39 249c InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."alreadysortinfo" 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. InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."alreadysortinfo" 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. 2025-06-19 13:54:39 1c84 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:39 1c84 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."errorrecord" 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. 2025-06-19 13:54:39 808 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:39 808 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."systemlog" 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. 2025-06-19 13:54:41 2d04 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:41 2d04 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."devicestate_monitorinfo" 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. 2025-06-19 13:54:41 3896 [Warning] Hostname 'DESKTOP-56G0R2L' does not resolve to '11.1.85.31'. 2025-06-19 13:54:41 3896 [Note] Hostname 'DESKTOP-56G0R2L' has the following IP addresses: 2025-06-19 13:54:41 3896 [Note] - fe80::e985:a0f1:2751:eada%17 2025-06-19 13:54:41 3896 [Note] - 169.254.170.71 2025-06-19 13:54:42 24b8 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:42 24b8 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."userinfo" 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. 2025-06-19 13:54:42 3896 [Warning] Hostname 'DESKTOP-1LL2I5F' does not resolve to '11.1.85.33'. 2025-06-19 13:54:42 3896 [Note] Hostname 'DESKTOP-1LL2I5F' has the following IP addresses: 2025-06-19 13:54:42 3896 [Note] - fe80::7082:fd95:7ec0:bcc8%17 2025-06-19 13:54:42 3896 [Note] - 169.254.255.9 2025-06-19 13:54:42 3896 [Warning] Hostname 'DESKTOP-56G0R2L' does not resolve to '11.1.85.26'. 2025-06-19 13:54:42 3896 [Note] Hostname 'DESKTOP-56G0R2L' has the following IP addresses: 2025-06-19 13:54:42 3896 [Note] - fe80::daa7:903b:6a3c:c735%17 2025-06-19 13:54:42 3896 [Note] - 11.1.85.31 2025-06-19 13:54:42 3896 [Warning] Hostname 'DESKTOP-56G0R2L' does not resolve to '11.1.85.22'. 2025-06-19 13:54:42 3896 [Note] Hostname 'DESKTOP-56G0R2L' has the following IP addresses: 2025-06-19 13:54:42 3896 [Note] - fe80::659c:c088:9d63:4346%17 2025-06-19 13:54:42 3896 [Note] - 11.1.85.37 2025-06-19 13:54:43 808 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:43 808 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."portcode_timing" 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. 2025-06-19 13:54:43 25a0 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:43 25a0 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."helpmanual" 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. 2025-06-19 13:54:45 3896 [Warning] Hostname 'DESKTOP-56G0R2L' does not resolve to '11.1.85.30'. 2025-06-19 13:54:45 3896 [Note] Hostname 'DESKTOP-56G0R2L' has the following IP addresses: 2025-06-19 13:54:45 3896 [Note] - fe80::6b84:3a08:e1d0:e750%17 2025-06-19 13:54:45 3896 [Note] - 11.1.85.31 2025-06-19 13:54:45 3896 [Warning] Hostname 'DESKTOP-56G0R2L' does not resolve to '11.1.85.24'. 2025-06-19 13:54:45 3896 [Note] Hostname 'DESKTOP-56G0R2L' has the following IP addresses: 2025-06-19 13:54:45 3896 [Note] - fe80::daa7:903b:6a3c:c735%17 2025-06-19 13:54:45 3896 [Note] - 11.1.85.28 2025-06-19 13:54:47 3896 [Warning] Hostname 'DESKTOP-S1Q82IV' does not resolve to '11.1.85.27'. 2025-06-19 13:54:47 3896 [Note] Hostname 'DESKTOP-S1Q82IV' has the following IP addresses: 2025-06-19 13:54:47 3896 [Note] - fe80::3711:88ce:2316:8596%17 2025-06-19 13:54:47 3896 [Note] - 169.254.226.201 2025-06-19 13:54:47 808 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2c6c InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2c6c2025-06-19 13:54:47 808 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."feedinginfo" 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. InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."feedinginfo" 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. 2025-06-19 13:54:47 24b8 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 24b82025-06-19 13:54:47 78c InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."feedinginfo" 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. InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 78c InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."feedinginfo" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."alreadysortinfohist" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."arrival" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."arrival_copy" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."bagcheckalarmforsto" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."bagcode_base64" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."baglifeinfo" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."bagscanresultinfo" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."basisdata" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."billlog" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."billloghist" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."checkscaleinfo" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."countinfo" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."customerinfo" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."departure" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."departure_copy" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."devicestateinfo" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."devicestateinfooferrorclosewcs" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."eachscanresult" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."electricenergyrecord" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."event_log" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."fail_upload" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."failsortinfo" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."failsortinfohist" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."failuploaddata" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."feedinginfo1" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."feedinginfohist" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."interfaceusagedetail" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."jdv2picinfo" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."loading_occupancy" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."manualcodingresult" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."manualcodingresulthist" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."moduleversion" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."nccountinfo" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."orderauto" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."packagecode" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."packageprintinfo" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."port_bagid" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."port_printer" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."portandboxcode" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."portcode_timinghist" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."queue_task" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."readtarget" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."reuploadopccodedata" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."routingtable" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."scannersortinfo" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."scanresult" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."show_billcode" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."sortcodeinfo" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."statisticsofpackagesupplyrecords" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."switchshiftofsto" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."ts" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."upload_fail" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."uploaddata" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."uploadpicinfo" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."user" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."useractioninfo" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."userrank_rankname" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."userrankinfo" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."webpointparameter" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."webpointparameter2" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."yzgjsortinfo" 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. 2025-06-19 13:54:47 2738 InnoDB: Error: Table "mysql"."innodb_table_stats" not found. 2025-06-19 13:54:47 2738 InnoDB: Error: Fetch of persistent statistics requested for table "db_wcs"."yzshift" 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. 2025-06-19 13:54:49 3896 [Warning] Hostname 'DESKTOP-S1Q82IV' does not resolve to '11.1.85.25'. 2025-06-19 13:54:49 3896 [Note] Hostname 'DESKTOP-S1Q82IV' has the following IP addresses: 2025-06-19 13:54:49 3896 [Note] - fe80::a18:a682:b681:52a8%17 2025-06-19 13:54:49 3896 [Note] - 169.254.226.201 2025-06-19 13:54:49 3896 [Warning] Hostname 'DESKTOP-S1Q82IV' does not resolve to '11.1.85.39'. 2025-06-19 13:54:49 3896 [Note] Hostname 'DESKTOP-S1Q82IV' has the following IP addresses: 2025-06-19 13:54:49 3896 [Note] - fe80::416:a93d:15ac:92bc%17 2025-06-19 13:54:49 3896 [Note] - 169.254.226.201 2025-06-19 13:54:49 3896 [Warning] Hostname 'DESKTOP-56G0R2L' does not resolve to '11.1.85.40'. 2025-06-19 13:54:49 3896 [Note] Hostname 'DESKTOP-56G0R2L' has the following IP addresses: 2025-06-19 13:54:49 3896 [Note] - fe80::e985:a0f1:2751:eada%17 2025-06-19 13:54:49 3896 [Note] - 11.1.85.28 2025-06-19 13:54:50 3896 [Warning] Hostname 'DESKTOP-S1Q82IV' does not resolve to '11.1.85.32'. 2025-06-19 13:54:50 3896 [Note] Hostname 'DESKTOP-S1Q82IV' has the following IP addresses: 2025-06-19 13:54:50 3896 [Note] - fe80::3711:88ce:2316:8596%17 2025-06-19 13:54:50 3896 [Note] - 169.254.226.201 2025-06-19 13:54:50 3896 [Warning] Hostname 'DESKTOP-56G0R2L' does not resolve to '11.1.85.38'. 2025-06-19 13:54:50 3896 [Note] Hostname 'DESKTOP-56G0R2L' has the following IP addresses: 2025-06-19 13:54:50 3896 [Note] - fe80::e985:a0f1:2751:eada%17 2025-06-19 13:54:50 3896 [Note] - 169.254.178.147 2025-06-19 13:54:51 3896 [Warning] Hostname 'DESKTOP-56G0R2L' does not resolve to '11.1.85.36'. 2025-06-19 13:54:51 3896 [Note] Hostname 'DESKTOP-56G0R2L' has the following IP addresses: 2025-06-19 13:54:51 3896 [Note] - fe80::e985:a0f1:2751:eada%17 2025-06-19 13:54:51 3896 [Note] - 169.254.170.71 2025-06-19 13:54:52 3896 [Warning] Hostname 'DESKTOP-56G0R2L' does not resolve to '11.1.85.28'. 2025-06-19 13:54:52 3896 [Note] Hostname 'DESKTOP-56G0R2L' has the following IP addresses: 2025-06-19 13:54:52 3896 [Note] - fe80::daa7:903b:6a3c:c735%17 2025-06-19 13:54:52 3896 [Note] - 11.1.85.36 2025-06-19 13:54:53 3896 [Warning] Hostname 'DESKTOP-56G0R2L' does not resolve to '11.1.85.37'. 2025-06-19 13:54:53 3896 [Note] Hostname 'DESKTOP-56G0R2L' has the following IP addresses: 2025-06-19 13:54:53 3896 [Note] - fe80::daa7:903b:6a3c:c735%17 2025-06-19 13:54:53 3896 [Note] - 11.1.85.28 windows2019下安装的mysql5.6 今天启动报错1067,重启服务器后正常了,以上是收集的mysql日志,帮忙分析报错1067的原因
06-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值