Hi,
Yesterday morning around 8 am (GMT+1), I performed what should of been standard MySQL upgrade from MySQL 5.6.34 to MySQL 5.6.35 using portupgrade(8), but ended up losing InnoDB tables completely and spending whole day getting them restored. I ran mysql_upgrade after database restart and noticed that the upgrade reported the InnoDB tables as missing.
I somehow ended up with two ibdata1 files, one in /var/db/mysql and another in /usr/local/var/db/mysql/. In /usr/local/etc/mysql/my.cnf was pointing to /var/db/mysql for the InnoDB data and log group files). The missing data were contained in the /usr/local/var/db/mysql/ibdata1 one but the MySQL would not start using this data file (changing my.cnf) with the following error:
So I installed 5.6.35 on windows and was able to start mysql using ibdata1 and managed to dump missing InnoDB data.
I ended up with:
1) imported the missing data.
2) changed entries in my.cnf like so:
(pointing to correct and working ibdata1)
3) made symlink:
Port maintainer confirmed the issue, there should be coming up 5.6.35_2 version so beware.
D.
Yesterday morning around 8 am (GMT+1), I performed what should of been standard MySQL upgrade from MySQL 5.6.34 to MySQL 5.6.35 using portupgrade(8), but ended up losing InnoDB tables completely and spending whole day getting them restored. I ran mysql_upgrade after database restart and noticed that the upgrade reported the InnoDB tables as missing.
I somehow ended up with two ibdata1 files, one in /var/db/mysql and another in /usr/local/var/db/mysql/. In /usr/local/etc/mysql/my.cnf was pointing to /var/db/mysql for the InnoDB data and log group files). The missing data were contained in the /usr/local/var/db/mysql/ibdata1 one but the MySQL would not start using this data file (changing my.cnf) with the following error:
Code:
InnoDB: auto-extending data file /usr/local/var/db/mysql/ibdata1 is of a different size 7296 pages (rounded down to MB) than specified in the .cnf file: initial 8192 pages, max 0 (relevant if non-zero) pages!
I ended up with:
1) imported the missing data.
2) changed entries in my.cnf like so:
Code:
innodb_data_home_dir = /usr/local/var/db/mysql
innodb_log_group_home_dir = /usr/local/var/db/mysql
(pointing to correct and working ibdata1)
3) made symlink:
Code:
/var/db/mysql -> /usr/local/var/db/mysql
Port maintainer confirmed the issue, there should be coming up 5.6.35_2 version so beware.
D.
Last edited by a moderator: