Amadex
Basic Pleskian
- Server operating system version
- CloudLinux 8.8 (Anatoly Filipchenko)
- Plesk version and microupdate number
- Plesk Obsidian 18.0.55 Update 1
Hello, I just want to report that we had problems with updating MariaDB 10.3 to MariaDB 10.5 on CloudLinux 8. The server was perfectly working for 2 years on MariaDB 10.3 but due WordPress requirements we needed to update it.
The following commands were executed as root:
I've verified the version inside Plesk settings > database, and it was MariaDB 10.5.
After that problems were starting:
I've did:
and nothing was solved. After a server reboot, the MariaDB didn't start at all.
Then I've contacted CloudLinux support and they found out this:
After that, MariaDB 10.5 worked, but after every reboot I've needed to use mkdir/run/mariadb && chmod 775 $_ && chown mysql. $_ command, again and again.
Also all of the LVE limits were messed up, and to re-apply them I needed to run this command after every reboot: lvectl apply all
At the end, I've re-installed the server and imported the backup. So we're still on freshly installed MariaDB 10.3 which works OK.
The following commands were executed as root:
- MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump -u admin --verbose --all-databases --routines --triggers > /root/all-databases.sql
- service mysqld stop
- cp -v -a /var/lib/mysql/ /var/lib/mysql_backup
- service mysqld start
- /usr/share/lve/dbgovernor/mysqlgovernor.py --mysql-version=mariadb106
- /usr/share/lve/dbgovernor/mysqlgovernor.py --install
- service mysql restart
- MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql_upgrade -uadmin
- service mysql restart
- plesk bin service_node --update local
- plesk sbin packagemng -sdf
After that problems were starting:
Random MariaDB crash with errors: Too many connections
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
ERROR: Plesk\Exception\Database: DB query failed: SQLSTATE[HY000] [2002] Connection refused
DB query failed: SQLSTATE[HY000] [2002] Connection refused
I've did:
plesk repair installation
pleak repair all -y
and nothing was solved. After a server reboot, the MariaDB didn't start at all.
Then I've contacted CloudLinux support and they found out this:
After that, MariaDB 10.5 worked, but after every reboot I've needed to use mkdir/run/mariadb && chmod 775 $_ && chown mysql. $_ command, again and again.
Also all of the LVE limits were messed up, and to re-apply them I needed to run this command after every reboot: lvectl apply all
At the end, I've re-installed the server and imported the backup. So we're still on freshly installed MariaDB 10.3 which works OK.