Step 1
Backup databases and data directory
mysqldump -u root -p -R -E --all-databases > /tmp/all-database-backup.sql
Check backup *.sql
ll /tmp/
Stop mariadb server
systemctl stop mariadb.service
Copy the databases directory in a separate
cp -ar /var/lib/mysql/ /var/lib/mysql.bak
Note : In case of failure of the upgrade you can use one of the above copies to restore your databases.
Step 2
Add the MariaDB Repository.
echo "[mariadb]
name = MariaDB
gpgcheck=1" >> /etc/yum.repos.d/MariaDB10.2.repo
OR
vi /etc/yum.repos.d/MariaDB10.2.repo
Add the following text in it:
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
Step 3
Remove MariaDB 5.5
rpm -qa | grep mariadb*
rpm -e --nodeps mariadb-server-5.5.50-1.el7_2.x86_64 mariadb-devel-5.5.50-1.el7_2.x86_64 mariadb-libs-5.5.50-1.el7_2.x86_64 mariadb-5.5.50-1.el7_2.x86_64
Step 4
Installing MariaDB 10.2
yum -y install MariaDB-server
Start the MariaDB service with:
systemctl start mariadb
Enable MariaDB to automatically start after system boot
systemctl enable mariadb
Finally run the upgrade command to upgrade MariaDB with:
mysql_upgrade
To verify that the upgrade was successful, run the following command:
mysql -V

Wow! it worked for me
ReplyDeletePatiently structured news presentation NewsGentle shares global political and technology stories in a calm sequence helping readers understand daily events with clarity balance insight and thoughtful guidance throughout coverage.
ReplyDeleteContemporary finance insight platform TechTrueMoney delivers tech news, digital money updates, and fintech developments enabling readers to grasp financial innovations daily with clarity balance insight depth and trustworthy journalistic perspective.
ReplyDeleteStrategic modern news coverage NewsUtility delivers global tech and political reporting with actionable insights helping audiences make informed choices daily with clarity balance perspective depth and thoughtfully structured editorial flow.
ReplyDelete