I need to recover data from an old 5.6.x snapshot. With a little bit of tinkering, I managed to get the 5.6.x snapshot restored on an m3.xlarge instance (any instance type other than m3.* won't work). I then successfully upgraded from 5.6.x to the latest 5.7.x.
The next step was to go from 5.7.x to 8.0.x. Each time I tried to perform the upgrade, RDS would claim it was "Upgrading", but it would return the "Available" state quickly, and it would be back to 5.7.x, with no visible errors in the console.
How do I upgrade it to 8.0.x?
Logs & events
, openPrePatchCompatibility.log
.some_db.some_table
, but there is only a database listed.select * from information_schema.innodb_sys_tables where name like '%#%';
In my case, there was one table listed:some_db/#sql-ib1408
.alter table
statement is interrupted. Unfortunately, runningdrop table `#sql-ib1408`;
doesn't work. While most of the responses at that link restate the problem rather than providing a solution, one hints at a possible fix.use some_db; drop table `#mysql50##sql-ib1408`;
, substituting the database and table names for your own. The#mysql50#
prefix tells MySQL not to attempt to encode the table name; normally, the#
character would be encoded.Note that the existence of an
#sql-ib*
table indicates that some of your data may be corrupt. Match the numeric ID in the#sql-ib
table name to theTABLE_ID
column ofINNODB_SYS_TABLES
to determine which table was affected. Be sure to inspect your data for integrity before proceeding.