Skip to content
Home ยป How to Install the mariadb-client in Linux?

How to Install the mariadb-client in Linux?

  • by

If you want to access MariaDB databases from other hosts, then your device must have a mariadb-client package.

 

Problem

How to install the mariadb-client in Linux?

 

Solution

Below is the command to install mariadb-client on some Linux distros:

Ubuntu/Debian

sudo apt update
sudo apt install mariadb-client

 

RockyLinux/AlmaLinux/RHEL

sudo yum install mariadb-client-*

 

Use the command below to see the version of mariadb-client after you installed the package:

mariadb --version
install the mariadb-client package
Checking MariaDB version

 

As you can see in the image above, the version of mariadb-client that you installed is version 10.11.3. But you should know that, usually by default, the package provided by the distro is a stable old version and not the latest stable version. Therefore, if you want the mariadb-client package to use the latest stable version, use the command below:

curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash

 

After that, reinstall the package using the command above (sudo apt install mariadb-client or sudo yum install mariadb-client-*), and your MariaDB version should be the latest.

 

Note

If you want to know how to access the MariaDB database from another host, you can go to this article.

 

References

bytebase.com
simplified.guide

image_pdfimage_print
Visited 8 times, 1 visit(s) today
Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *