MySQL server repair

I have executed a mysql upgrade command in the server (Ubuntu 20.04.4 LTS) accidently and the mysql server is down now and not starting on HestiaCP. Could someone able to let know how to repair this mysql server ?

Re running the commands below fixed the issue.

sudo apt remove mariadb-server mariadb-server-10.3 mariadb-server-core-10.3 mariadb-client mariadb-client-10.3 mariadb-client-core-10.3 mariadb-common

sudo apt install mariadb-server-10.5

1 Like

Glad to hear you’ve sorted it out. Alternatively, one should be able to restore the configuration files from /root/hst_backups/{date}/conf/mysql to their original locations (assuming that the server has performed at least one upgrade of HestiaCP itself).

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.