This document can be used in following scenarios :
- MySQL Major version upgrade TARBALL based
- MySQL Minor version upgrade TARBALL based
- MySQL Security Patch apply TARBALL based
In this tutorial, we will upgrade MYSQL instance 5.6.26 installed using TARBALL in blog (Install MYSQL 5.6 using TARBALL) on Linux server to new version MYSQL 5.6.34
Quick High Level steps:
- Backup database - I used MEB(3.12) but Mysqldump or a cold backup is okay
- Shutdown the database cleanly.
- UNTAR new binaries to specified location
- Start MYSQL with new home and set environment
- Run mysql_upgrade for new release
Detailed Low Level steps:
mkdir -p /usr/mysql/5.6.34
tar -xvzf mysql-advanced-5.6.34-linux-glibc2.5-x86_64.tar.gz -C /usr/mysql/5.6.34
.
.
.
.
cd /usr/mysql/5.6.34/mysql-advanced-5.6.34-linux-glibc2.5-x86_64/
bin/mysqld_safe --defaults-file=/etc/my.cnf --user=mysql &
ps -ef|grep mysql
cd /etc/init.d/
vim mysql
export PATH=$PATH:/usr/mysql/5.6.34/mysql-advanced-5.6.34-linux-glibc2.5-x86_64/bin
which mysql
STEP 8: Run mysql_upgrade using new home
cd /usr/mysql/5.6.34/mysql-advanced-5.6.34-linux-glibc2.5-x86_64/
bin/mysql_upgrade -uroot –pgoogle@123 --port=3306
STEP 9: Restart MYSQL and check upgraded version
cd /usr/mysql/5.6.34/mysql-advanced-5.6.34-linux-glibc2.5-x86_64/
bin/mysql_upgrade -uroot –pgoogle@123 --port=3306
STEP 9: Restart MYSQL and check upgraded version
/etc/init.d/mysql restart
\s
That's All !! YOUR INSTANCE UPGRADED SUCESSFULLY !!!
No comments:
Post a Comment