The error message
(InnoDB: Table flags are 0 in the data dictionary but the flags in file ./ibdata1 are 0x4000!`)
is a common sign of downgrading from MySQL v8.0 to v5.7. MySQL v5.7 cannot interpret the data files and panics and throws this error message. Downgrade might have happened if you have an upgrade that failed and bosh recreate was executed on the failing MySQL vm.
To resolve issue:
1.
bosh -d <cf-deployment> ssh <failing-mysql-vm>
2. To verify if MySQL has been upgraded or not, list files in
/var/vcap/store/pxc-mysql
. If there is a file named
mysql.ibd
file OR a directory named
'#innodb_redo'
, the instance has been previously upgraded.
3. Make a backup of the database data folder so you have the option to revert to database original state if needed
cp -r /var/vcap/store/pxc-mysql /var/vcap/store/pxc-mysql-backup
4. If MySQL had been previously upgraded , deleting the two files written by MySQL 5.7 , namely removing the files:
/var/vcap/store/pxc-mysql/ib_logfile0
/var/vcap/store/pxc-mysql/ib_logfile1
5.
Apply Change on OpsManager UI to continue with the upgrade