• Home
  • Releases
  • Submit Vuln
  • Press
  • About
  • PGP
  • Contact
    • Contact
    • Submit Vuln
    • VDP
  • Tutorials
    • All Posts
    • Photoshop on Linux
    • macOS on Linux
  • Supporters
  • Projects
  • Training
Sick Codes - Security Research, Hardware & Software Hacking, Consulting, Linux, IoT, Cloud, Embedded, Arch, Tweaks & Tips!
  • Home
  • Releases
  • Submit Vuln
  • Press
  • About
  • PGP
  • Contact
    • Contact
    • Submit Vuln
    • VDP
  • Tutorials
    • All Posts
    • Photoshop on Linux
    • macOS on Linux
  • Supporters
  • Projects
  • Training
No Result
View All Result
Sick Codes - Security Research, Hardware & Software Hacking, Consulting, Linux, IoT, Cloud, Embedded, Arch, Tweaks & Tips!
  • Home
  • Releases
  • Submit Vuln
  • Press
  • About
  • PGP
  • Contact
    • Contact
    • Submit Vuln
    • VDP
  • Tutorials
    • All Posts
    • Photoshop on Linux
    • macOS on Linux
  • Supporters
  • Projects
  • Training
No Result
View All Result
Sick Codes - Security Research, Hardware & Software Hacking, Consulting, Linux, IoT, Cloud, Embedded, Arch, Tweaks & Tips!
No Result
View All Result
Home Tutorials

UBUNTU/CENTOS: Update MySQLMariaDB to ANY Version on VestaCP CentOS 7/8. 10.2, 10.4, 10.5, 10.6, 10.x

by Sick Codes
April 15, 2020 - Updated on September 2, 2021
in Tutorials
0
update mysql vestacp to newer version

update mysql vestacp to newer version

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

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

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

Ubuntu/Debian users can choose any version on this page: https://archive.mariadb.org/

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

RUN AS ROOT

CentOS/RHEL

VERSION_NUM='10.6'

service mariadb stop

yum remove mariadb mariadb-server -y

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

yum install MariaDB-server MariaDB-client -y

service mariadb start

mysql_upgrade



RUN AS ROOT

UBUNTU/DEBIAN

VERSION_NUM='10.6.0'
DISTRO=ubuntu

apt update -y

apt install software-properties-common -y

apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 F1656F24C74CD1D8

add-apt-repository "deb [arch=amd64] https://archive.mariadb.org/mariadb-${VERSION_NUM}/repo/${DISTRO}/ $(lsb_release --short --codename) main"

apt update -y
apt upgrade -y

systemctl disable mysql
systemctl stop mysql

apt install mariadb-server -y
apt install mariadb-common mariadb-server -y

systemctl enable --now mariadb
mysql_upgrade --force



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
Next Post
change email in git and username using vim

Change git username and email on your machine (Global and Locally)

install mitm proxy linux easy

Install MITM Proxy on ANY Linux (the EASY & PROPER way!) Man in the Middle Proxy Server for Arch Linux

Navigate go up one directory in Python using paths.

Leave a Reply Cancel reply

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

No Result
View All Result
  • Home
  • Releases
  • Submit Vuln
  • Press
  • About
  • PGP
  • Contact
    • Contact
    • Submit Vuln
    • VDP
  • Tutorials
    • All Posts
    • Photoshop on Linux
    • macOS on Linux
  • Supporters
  • Projects
  • Training

© 2017-2021 Sick.Codes

@sickcodes

@sickcodes

@sickcodes

Discord Server

sickcodes.slack.com

t.me/sickcodeschat

./contact_form