update mysql vestacp to newer version

Update MariaDB to ANY Version on VestaCP CentOS 7/8. 10.2, 10.4, 10.5, 10.x

Replacing the stock MariaDB/MySQL version in VestaCP with a newer version.

I updated mine because I wanted to use the JSON data type.

You can choose any version on this page: https://yum.mariadb.org/

For this example we are using 10.4, if you want a different version, just replace the VERSION_NUM=’10.x’ near the top of the script.



service mariadb stop

yum remove mariadb mariadb-server -y

echo '
# MariaDB 10.x CentOS repository list 
# http://downloads.mariadb.org/mariadb/repositories/
name = MariaDB
baseurl = https://yum.mariadb.org/'${VERSION_NUM}'/centos7-amd64
gpgcheck=1' > /etc/yum.repos.d/mariadb.repo

yum install MariaDB-server MariaDB-client -y

service mariadb start


After running that script, your MariaDB will be updated to the newer version, enjoy!

update mysql vestacp to newer version
update mysql vestacp to newer version

Leave a Reply

Your email address will not be published. Required fields are marked *