Centos 7. To install Galera-cluster, MariaDB version 10.1 or higher is required. I connect the repository:

# MariaDB 10.1 CentOS repository list - created 2018-02-26 11:31 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.1/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 $ yum repolist enabled repo id repo name status mariadb MariaDB 15 repolist: 15 sudo mysql --version mysql Ver 15.1 Distrib 5.5.56-MariaDB, for Linux (x86_64) using readline 5.1 

The server was installed, but the client is not, the version of the server does not match the one I need (10.1)

 $ yum repolist enabled Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile repolist: 0 

As you can see all the turnips are off, try to find mariadb

 yum search mariadb Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile ====== N/S matched: mariadb ======== mariadb-libs.x86_64 : The shared libraries required for MariaDB/MySQL clients mariadb-server.x86_64 : The MariaDB server and related files mariadb.x86_64 : A community developed branch of MySQL Name and summary matches only, use "search all" for everything. 

I cleaned the cache and still see these packages, how can I install Mariadb 10.1 specifically from the repositories that I installed?

  • yum --enablerepo mariadb install mariadb? - GarfieldCat
  • @GarfieldCat No packages available with active mariadb.repo (yum repolist enabled sees) - Sling
  • Checked on CentOS 6: yum --enablerepo mariadb install MariaDB-client - GarfieldCat

1 answer 1

It is required to clear the cache and recreate it:

 $ sudo rm -rf /var/cache/yum $ sudo makecache $ sudo yum search MariaDB loaded plugins: fastestmirror Loading mirror speeds from cached hostfile ================== N/S matched: mariadb============== MariaDB-backup.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-cassandra-engine.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-client.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-common.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-compat.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-connect-engine.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-cracklib-password-check.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-devel.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-gssapi-client.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-gssapi-server.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-oqgraph-engine.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-server.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-shared.x86_64 : MariaDB: a very fast and robust SQL database server MariaDB-test.x86_64 : MariaDB: a very fast and robust SQL database server mariadb-libs.x86_64 : The shared libraries required for MariaDB/MySQL clients $ yum -y install MariaDB-server MariaDB-client galera percona-xtrabackup-24 $ mysql --version mysql Ver 15.1 Distrib 10.1.31-MariaDB, for Linux (x86_64) using readline 5.1