
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
Downgrading Binary and Package-based Installations on Unix/Linux
Let us understand how to downgrade binary and package-based installation on Unix or Linux. Downgrading binary and package based installations on Unix or Linux can be done in a variety of ways. They have discussed below.
In-Place Downgrade
In-place downgrade involves shutting down the new MySQL version.
Once this is done, the new MySQL binaries or packages are replaced with the old binaries or packages.
Once this is done, the old MySQL version is restarted on the existing data directory.
MySQL has to be configured to perform a slow shutdown by setting innodb_fast_shutdown to 0.
The below command would do the same −
mysql -u root -p --execute="SET GLOBAL innodb_fast_shutdown=0"
Shut down the newer MySQL server. This can be done using the below commands −
mysqladmin -u root -p shutdown
After the slow shutdown, the InnoDB redo log files are removed (the ib_logfile* files) from the data directory. This is done to avoid downgrade issues that are associated with the redo log file format which would have occurred between releases.
Logical Downgrade
Logical downgrade involves usage of mysqldump to dump all tables from the new MySQL version.
Once this is done, the dump file is loaded into the old MySQL version.
Logical downgrades are supported for downgrades between releases within the same release series as well as for downgrades to the previous release level.
Only downgrades between General Availability (GA) releases are supported.
Dump all the databases. This is done using the below command −
mysqldump −u root −p −−add−drop−table −−routines −−events −−all−databases −−force > data−for−downgrade.sql
The newer MySQL server is shut down using the below command −
mysqladmin −u root −p shutdown
- Related Articles
- Upgrading MySQL Binary or Package-based Installations on Unix/Linux
- Init process on UNIX and Linux systems
- Perl Installation on Unix and Linux Platform
- Difference between Linux and Unix
- Installing MySQL on Unix/Linux Using Generic Binaries
- What are the calling conventions for UNIX & Linux system calls on i386 and x86-64
- Linux Package Management with Aptitude
- 5 Best Linux Package Managers for Linux Newbies
- What are the differences between Unix and Linux Operating System?
- Accessing The Unix/Linux password database (pwd)
- Linux and Unix Test Disk I/O Performance with DD Command
- How to find and sort files based on modification date and time in linux
- 3 Top Node.js Package Managers for Linux
- 10 Apk Commands for Alpine Linux Package Management
- 5 Useful X-based (Gui Based) Linux Commands
