Managing databases is a vital component of contemporary IT systems. From powering websites and applications to handling local data management, SQL databases like MySQL and MariaDB are widely utilized.

Both MySQL and MariaDB are compatible with an array of systems, including CentOS, Red Hat, and Fedora. While MySQL is renowned as an open-source relational database system, MariaDB serves as a MySQL-compatible relational database system, binary-compatible with MySQL, and enriched with additional features and storage engines.

Installing only the client for MySQL or MariaDB, as opposed to the full server package, can be a strategic choice. It enables database management from your local machine without the necessity of having the complete server package installed, thus saving resources and maintaining efficiency.

Steps to install MySQL or MariaDB client on CentOS, Red Hat, Fedora:

  1. Open a terminal window on your system.
  2. Update your system packages.
    sudo dnf update -y
  3. Enable the (Extra Packages for Enterprise Linux) repository if you are using CentOS or Red Hat.
    sudo dnf install epel-release -y
  4. Install your preferred RDBMS client.
    $ sudo yum install mysql-community-client
    $ sudo yum install MariaDB-client
  5. Verify the installation by checking the version of the installed client.
    mysql --version
    mariadb --version
Discuss the article:

Comment anonymously. Login not required.