I made release update recently from 18.04 to 20.04.
After update SQL doesn't work. After checking status with systemctl status mysql.service
I get this:
● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: activating (start) since Mon 2021-04-26 00:09:58 CEST; 3s ago
Process: 115994 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
Main PID: 116002 (mysqld)
Status: "Data Dictionary upgrade from MySQL 5.7 in progress"
Tasks: 29 (limit: 9450)
Memory: 382.6M
CGroup: /system.slice/mysql.service
└─116002 /usr/sbin/mysqld
Will it get up eventually? I see mysql processes use up a lot of CPU (like 30%), but 4 hours have passed and it's like nothing happens. Is it broken?
BTW, I have important data in the DB. The only backup I have is just copied /var/lib/mysql directory. But I guess it would not be easy to recover?
The databases I have on that server are really small, so I'm so surprised it takes so long.
/var/log/mysql/error.log
file that might point to an issue? There are instances where an upgrade from 5.x to 8.0 can result in MySQL hanging at this stage, particularly if there is any hint of corruption on one of themysql
system tables ...