outroll / vesta

VESTA Control Panel
http://vestacp.com
GNU General Public License v3.0
2.98k stars 1.03k forks source link

Need Custom VestaCP Command To Install VestaCP with MariaDB10 #1531

Open reutorah opened 6 years ago

reutorah commented 6 years ago

Operating System (OS/VERSION):

Centos 6

VestaCP Version:

Mariadb 5 latest version

Installed Software (what you got with the installer):

apache, nginx, mariadb 5

Steps to Reproduce:

i want to install vestacp with mariadb 10 as fresh installation i dont want to install mariadb separately after installing vestacp with mariadb 5

Related Issues/Forum Threads:

I need this urgent if you can share the code or send me .sh script i will thankyou.

Other Notes:

Anything else? Please attach bash script here or email me at 1godofuniverse@gmail.com

Thanks.

lukapaunovic commented 6 years ago

You just install Vesta normally. And then create file

/etc/yum.repos.d/MariaDB.repo

And put contents from:

For CentOS 6 x64 bit:

https://downloads.mariadb.org/mariadb/repositories/#mirror=mva&distro=CentOS&distro_release=centos6-amd64--centos6&version=10.1

For CentOS 6 x86 https://downloads.mariadb.org/mariadb/repositories/#mirror=mva&distro=CentOS&distro_release=centos6-x86--centos6&version=10.1

After that you just do

mysql_upgrade
yum update -y
service mariadb start
mysql_upgrade
service mariadb restart

This will upgrade your mariadb and is most valid way of replacing mariadb version.