- Views: 859
- Replies: 1
These instructions detail the upgrade from a previous version of MariaDB Community Server to MariaDB Community Server on CentOS Linux 8.
When MariaDB Community Server is upgraded, the old version needs to be uninstalled, and the new version needs to be installed.
1. Backup SQL
Code:
You must log in to view
(1 lines)
- root is sql user
- dbname is database name
- and enter password
When upgrading to a new major release of MariaDB Community Server, it is necessary to remove the existing installation of MariaDB Community Server, before installing the new version of MariaDB Community Server. Otherwise, the package manager will refuse to install the new version of MariaDB Community Server.
Code:
You must log in to view
(3 lines)
Before proceeding, verify that all MariaDB Community Server packages are uninstalled. The following command should not return any results:
Code:
You must log in to view
(1 lines)
3. Install the New Version
Code:
You must log in to view
(6 lines)
Install MariaDB Community Server and package dependencies:
Code:
You must log in to view
(1 lines)
3. Configuration
MariaDB Community Server's packages bundle several configuration files:
- /etc/my.cnf
- /etc/my.cnf.d/client.cnf
- /etc/my.cnf.d/mysql-clients.cnf
- /etc/my.cnf.d/server.cnf
4. Starting the Server
MariaDB Community Server includes configuration to start, stop, restart, enable/disable on boot, and check the status of the Server using the operating system default process management system.
Code:
You must log in to view
(2 lines)
5. Upgrading the Data Directory
MariaDB Community Server ships with the mariadb-upgrade utility which can be used to identify and correct compatibility issues in the new version. After you upgrade your Server and start the server process, run this utility to upgrade the data directory:
Code:
You must log in to view
(1 lines)
Done!