Bug #105525 | [MY-010995] [Server] Error in renaming mysql_index_stats.ibd. | ||
---|---|---|---|
Submitted: | 11 Nov 2021 4:13 | Modified: | 11 Nov 2021 14:57 |
Reporter: | Pham Khuong | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Logging | Severity: | S3 (Non-critical) |
Version: | 8.0.26 | OS: | CentOS |
Assigned to: | CPU Architecture: | Any |
[11 Nov 2021 4:13]
Pham Khuong
[11 Nov 2021 13:27]
MySQL Verification Team
Hi Mr. Khuong, Thank you for your bug report. However, it is not a bug. You should first do the entire upgrading procedure, then you should restart 8.0 and only then you should change the settings. Not a bug.
[11 Nov 2021 14:07]
Pham Khuong
Sorry because the steps are not detailed. But with the following steps, i got the error warning: - Install mysql 5.7.36 - In mysql 5.7 i set the option: innodb_file_per_table = off - Restart mysql 5.7 --> It means i used mysql 5.7 with option innodb_file_per_table = off before upgrading Before upgrade to mysql 8.0.26 - Stop mysql - Upgrade to mysql 8.0.26 - Start mysql -> Got the warning: [Warning] [MY-010995] [Server] Error in renaming mysql_index_stats.ibd.
[11 Nov 2021 14:20]
MySQL Verification Team
Hi Mr. Khuong, Sorry, but mysql_index_stats is not a table that we create nor maintain. It is not a part of our installation. Are you sure you were and are using our 5.7 and 8.0 binaries ???
[11 Nov 2021 14:27]
Pham Khuong
Hi MySQL Verification Team Yes, i used the MySQL Community Server 8.0.26 (Linux - Generic: https://dev.mysql.com/downloads/mysql/) I tested with two binaries - mysql-5.7.36-linux-glibc2.12-x86_64.tar.gz - mysql-8.0.26-linux-glibc2.12-x86_64.tar.xz Thank you.
[11 Nov 2021 14:39]
MySQL Verification Team
Hi Mr. Khuong, The cause of your problem is quite simple. Disabling innodb_file_per_table causes InnoDB to create tables in the system tablespace. Since you do not have a system tablespace created and there are tables (that are using file-per-table option) then renaming is not possible. Hence, if you want to prevent innodb_file_per_table option, you have to manage your installation with lots of manual work, that is explained in our Reference Manual. Not a bug.
[11 Nov 2021 14:57]
Pham Khuong
Hi MySQL Verification Team I got it. Yes, this problem is quite simple. But i think when i used the option innodb_file_per_table = off, all *.ibd files will vanish and all InnoDB tables and indexes will exist inside ibdata1 So i think if the option innodb_file_per_table = off, the warning "[Warning] [MY-010995] [Server] Error in renaming mysql_index_stats.ibd." should not be shown. Thank you.
[11 Nov 2021 15:59]
MySQL Verification Team
You are truly welcome.