Hello,
OS is Ubuntu18. I try to upgrade my MySQL 5.7 Servers to 8.0.15, but only a few of them are working.
At first i run upgradecheck:
mysqlcheck -u root -p --all-databases --check-upgrade
For this particular Server output for every table is OK.
After that i download mysql-apt-config to extend repos:
https://dev.mysql.com/downloads/file/?id=482330
Now is time to install:
apt-get install mysql-community-server
First part with uninstalling old server and install the new one looks normal. After that we reach the point where new server ist starting up the very first time. in pstree this looks like that:
mysqld,5385 --user=mysql --daemonize --socket=/tmp/tmp.ZDhxfgvlik/mysqld.sock --pid-file=/tmp/tmp.ZDhxfgvlik/mysqld.pid --skip-networking --skip-grant-tables
At this point no further progress is noticeable. mysqld uses less cpu/ram, but i see no real progress. In errorlog i see something like this:
2019-03-25T11:22:23.642051+01:00 2 [ERROR] [MY-012069] [InnoDB] table: table1 has 25 columns but InnoDB dictionary has 26 columns
2019-03-25T11:22:23.642239+01:00 2 [ERROR] [MY-010767] [Server] Error in fixing SE data for db1.table1
2019-03-25T11:23:22.563370+01:00 2 [ERROR] [MY-012069] [InnoDB] table: table1 has 25 columns but InnoDB dictionary has 26 columns
2019-03-25T11:23:22.563642+01:00 2 [ERROR] [MY-010767] [Server] Error in fixing SE data for db2.table1
2019-03-25T11:23:30.629685+01:00 2 [ERROR] [MY-012069] [InnoDB] table: table1 has 25 columns but InnoDB dictionary has 26 columns
2019-03-25T11:23:30.629703+01:00 2 [ERROR] [MY-010767] [Server] Error in fixing SE data for db3.table1
2019-03-25T11:23:40.310680+01:00 2 [ERROR] [MY-012069] [InnoDB] table: table1 has 25 columns but InnoDB dictionary has 26 columns
2019-03-25T11:23:40.311028+01:00 2 [ERROR] [MY-010767] [Server] Error in fixing SE data for db4.table1
2019-03-25T11:28:09.398738+01:00 0 [ERROR] [MY-010022] [Server] Failed to Populate DD tables.
2019-03-25T11:28:09.399103+01:00 0 [ERROR] [MY-010119] [Server] Aborting
estimated waiting time was ~5min until errors appeared in log. now package installation is broken and ends in error:
2019-03-25T11:28:09.529771+01:00 0 [ERROR] [MY-010946] [Server] Failed to start mysqld daemon. Check mysqld error log.
Warning: Unable to start the server. Please restart MySQL and run mysql_upgrade to ensure the database is ready for use.
/var/lib/mysql/ibdata1: 5419
ERROR: Database files are locked. Daemon already running?
Warning: Unable to start the server.
Removed /etc/systemd/system/mysql.service.
Synchronizing state of mysql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable mysql
[....] Restarting mysql (via systemctl): mysql.serviceJob for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.
failed!
Same behaviour i see on several servers. On the other hand upgrading with small or empty databases works in most attempts.
I dont know how to fix this. I could dump all data and reinstall in fresh installation, but an upgrade should work this way, especially the check-upgrade reported no error.
What to do now?
Thanks,
Hans