Bug #97310 | MySQL 8.0.17 server in startup crash loop | ||
---|---|---|---|
Submitted: | 21 Oct 2019 10:38 | Modified: | 22 Oct 2019 3:06 |
Reporter: | bob guo | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Data Dictionary | Severity: | S3 (Non-critical) |
Version: | 8.0.17 | OS: | MacOS (10.14.4 ) |
Assigned to: | CPU Architecture: | x86 |
[21 Oct 2019 10:38]
bob guo
[21 Oct 2019 10:44]
bob guo
correction Synopsis spell and version formate
[21 Oct 2019 12:24]
MySQL Verification Team
Hi Mr. guo, Thank you for your bug report. However, this is not a bug. The only things that happen here is that server prints the following message into your error log: "there is no index in referenced table" " which would contain\n" "the columns as the first columns," " or the data types in the\n" "referenced table do not match" " the ones in table." This happens because you have not set your MySQL server to be 100 % ACID compliant. Description on how to achieve that is found in our Reference Manual. Not a bug.
[21 Oct 2019 12:56]
bob guo
Thank you for your reply。 but I didn't find the message you mentioned in the log. From the details of the stack, i think the problem should be about the data dictionary, not about the user table. I suspect the consistency of the data dictionary was compromised when system was shutdown. and the process in startup could not fix it. how can i recovery the inconsistency of data?
[21 Oct 2019 13:13]
MySQL Verification Team
Hi Mr. guo, First of all, all user tables have their metadata in the data dictionary. So, simply, the problem could be in interface. The message that I quoted is printed with specially built debug binary. Last, but not least, you have written about power down and up. This is not the same as proper, fully ACID set shutdown. Once again, your problem is, most likely, in your settings which do not provide full ACID compliance. Again, this is described in our Reference Manual.
[22 Oct 2019 3:06]
bob guo
Thank you for your help. I modify the /etc/my.cnf and a line and set innodb_force_recovery = 5 to forcing InnoDB Recovery. mysqld started successfully 。then i clould export my data. After that, remove innodb_force_recovery option in /etc/my.cnf. I invoked mysqld with the --initialize and reinitialized the whole data directory. So mysqld restarted normaly. at last i successfully imported the data to mysql.
[22 Oct 2019 12:19]
MySQL Verification Team
Hi Mr. Guo, I am glad to hear that you are out of trouble, but, again I must repeat that the problems that you experienced are due to the non-ACID setup of the server and OS. I am using the same OS and I do know that, for example, filesystem cache can not be turned off.