MariaDB Server Update to version 10.2 VESTACP Centos7
Below a very simple guide with which our server update MySQL to version 10.2.
The current version of the MySQL server, we check the command mysql -V
For starters, create a file repositories /etc/yum.repos.d/mariadb.repo
1 | nano /etc/yum.repos.d/mariadb.repo |
The content:
1 2 3 4 5 6 7 | # MariaDB 10.2 CentOS repository list - created 2018-03-20 16:30 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.2/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 |
save.
We stop working mysql server:
1 | service mariadb stop |
We update repositories and charge our server MariaDB:
1 | yum update |
Start the MySQL server:
1 | service mysql start |
The last step is to perform an update command:
1 | mysql_upgrade |
If all goes around checking our version :
[root@node ~]#
1 2 | mysql -V mysql Ver 15.1 Distrib 10.2.13-MariaDB, for Linux (x86_64) using readline 5.1 |
[root@node ~]#