Chapter 1. 1. MAKE SURE YOU’RE RUNNING MARIADB 5.5
Run the following command:
1 |
mysql -v |
Should output the following:
1 2 3 4 5 6 7 8 |
Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 5 Server version: 5.5.60-MariaDB MariaDB Server Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Reading history-file /root/.mysql_history Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. |
Perfect, let’s keep going!
Chapter 2. 2. ADD THE MARIADB 10.3 REPOSITORY
Run the following command to add the MariaDB 10.3 repository to yum:
1 |
nano /etc/yum.repos.d/maria10-3.repo |
Paste the following into the editor
1 2 3 4 5 6 7 |
# MariaDB 10.3 CentOS repository list - created 2018-11-19 23:14 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.3/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 |
Save and close the editor, then move to the next step
Chapter 3. 3. UPGRADE TO MARIADB 10.3 AND VERIFY SUCCESS
Run the following command to upgrade to MariaDB 10.3:
1 |
yum install MariaDB-server MariaDB-client |
Output should look something like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
========================================================================================================================================================================================================================== Package Архитектура Версия Репозиторий Размер ========================================================================================================================================================================================================================== Установка: MariaDB-client x86_64 10.3.15-1.el7.centos mariadb 11 M замена mariadb.x86_64 1:5.5.60-1.el7_5 MariaDB-compat x86_64 10.3.15-1.el7.centos mariadb 2.8 M замена mariadb-libs.x86_64 1:5.5.60-1.el7_5 MariaDB-server x86_64 10.3.15-1.el7.centos mariadb 24 M замена mariadb-server.x86_64 1:5.5.60-1.el7_5 Установка зависимостей: MariaDB-common x86_64 10.3.15-1.el7.centos mariadb 78 k boost-program-options x86_64 1.53.0-27.el7 base 156 k galera x86_64 25.3.26-1.rhel7.el7.centos mariadb 8.1 M |
Once yum does it’s thing, restart the MariaDB daemon:
1 |
systemctl restart mariadb |
Then verify that the service has started and the installation is complete:
1 |
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details. |
The fix for the startup problem is in the article
You should see output similar to the following:
1 2 3 4 5 6 7 8 |
Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 11 Server version: 10.3.15-MariaDB MariaDB Server Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Reading history-file /root/.mysql_history Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. |
Sweet, you’re now running MariaDB 10.3!
[…] Появяилась новая проблема на CentOS 7, при установке MariaDB 10.3 — Как обновить […]