Skip to content

Instantly share code, notes, and snippets.

@r4nd1
Created February 22, 2024 19:19
Show Gist options
  • Save r4nd1/74a0c8405aa067fd7f7f4a6e9d7d6533 to your computer and use it in GitHub Desktop.
Save r4nd1/74a0c8405aa067fd7f7f4a6e9d7d6533 to your computer and use it in GitHub Desktop.
Upgrade version mariadb on CWP
#!/bin/bash
service mysql stop
service mariadb stop
systemctl disable mariadb
rpm --nodeps -ev MariaDB-server
yum clean all
yum -y update "MariaDB-*"
yum -y install MariaDB-server
systemctl enable mariadb
service mariadb start
mysql_upgrade
rpm -qa|grep -i maria
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment