Bug #96497 | The Auto-extending innodb_system data file './ibdata1' is of a different size | ||
---|---|---|---|
Submitted: | 10 Aug 2019 7:31 | Modified: | 10 Aug 2019 19:18 |
Reporter: | Maurice Volaski | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Options | Severity: | S3 (Non-critical) |
Version: | 8.0.17 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[10 Aug 2019 7:31]
Maurice Volaski
[10 Aug 2019 9:08]
MySQL Verification Team
This is not a bug, but completely expected. The default is: ibdata1:12M:autoextend So when you create a 10MiB file at first. The server looks for a 12MiB file after you remove the my.cnf option. Error here is expected. 640 pages is 10MiB. A page is 16KiB in size.
[10 Aug 2019 9:10]
MySQL Verification Team
> > than specified in the .cnf file: initial 768 pages, > Here, you need to put: 768 * 1024 * 16 = 12582912 ibdata1:12582912:autoextend or 12582912/1024/1024 = ibdata1:12M:autoextend
[10 Aug 2019 19:18]
Maurice Volaski
I find it ironic that you would not consider this a bug given your good effort to explain it here, an explanation that is not present in the cryptic error message itself. This bug report will have to serve an antidote to this deficiency. Furthermore, as I stated the docs don't make it clear this is expected behavior. It ought to say that the initial auto-expansion size is fixed and the engine needs whatever it's initially configured at to remain in the configuration. (Why this is the case is also unexplained).
[19 Aug 2019 15:49]
Daniel Price
The "Resizing the System Tablespace" section in the documentation has been updated to cover the failure scenario described above. https://dev.mysql.com/doc/refman/8.0/en/innodb-system-tablespace.html Thank you for the bug report.