-1

Objective: Installing client only of MariaDB for command line testing of working connection webserver <> external server.

There are numerous tutorials to be found which describe MariaDB installation, often including installation of a MariaDB-Client package. I've added the repository to /etc/yum.repos.d but still yum install mariadb-client fails, stating that

No match for argument: mariadb-client
Error: Unable to find a match: mariadb-client

I can, however, install the mariadb-server package just fine and I can on command line verify my db connection - but that's overkill, installing a full server to get client functionality.

How do I accomplish my objective?

0

2 Answers 2

1

There's no such package. If you need to install the mysql utility, please run sudo dnf install mariadb.

In the future, you could do this:

# dnf whatprovides '*bin/mysql'
community-mysql-8.0.21-11.fc33.x86_64 : MySQL client programs and shared libraries
Repo        : fedora
Matched from:
Other       : *bin/mysql

community-mysql-8.0.23-1.fc33.x86_64 : MySQL client programs and shared libraries
Repo        : updates
Matched from:
Other       : *bin/mysql

mariadb-3:10.4.14-2.fc33.x86_64 : A very fast and robust SQL database server
Repo        : fedora
Matched from:
Other       : *bin/mysql

mariadb-3:10.4.17-1.fc33.x86_64 : A very fast and robust SQL database server
Repo        : updates
Matched from:
Other       : *bin/mysql
0

You can install MariaDB-client following the instructions in the official documentation:

wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup
chmod +x mariadb_repo_setup
sudo ./mariadb_repo_setup

Use dnf or yum:

sudo yum install perl-DBI libaio libsepol lsof boost-program-options
sudo yum install --repo="mariadb-main" MariaDB-client
1
  • it tells me "no such option --repo"
    – ESP32
    Commented May 20, 2023 at 7:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .