Installing MariaDB With the rpm Tool
A guide to installing MariaDB using the low-level `rpm` command, suitable for situations where package managers like `yum` or `dnf` are not available or preferred.
This article describes how to download the RPM files and install them using therpm command.
It is highly recommended to Install MariaDB with yum where possible.
Navigate toand choose the desired database version and then select the RPMs that match your Linux distribution and architecture.
Clicking those links takes you to a local mirror. Choose the rpms link and download the desired packages. The packages will be similar to the following:
MariaDB-client-5.2.5-99.el5.x86_64.rpm
MariaDB-debuginfo-5.2.5-99.el5.x86_64.rpm
MariaDB-devel-5.2.5-99.el5.x86_64.rpm
MariaDB-server-5.2.5-99.el5.x86_64.rpm
MariaDB-shared-5.2.5-99.el5.x86_64.rpm
MariaDB-test-5.2.5-99.el5.x86_64.rpmFor a standard server installation you will need to download at least the client, shared, and server RPM files. See About the MariaDB RPM Files for more information about what is included in each RPM package.
After downloading the MariaDB RPM files, you might want to check their signatures. See Checking MariaDB RPM Package Signatures for more information about checking signatures.
rpm --checksig $(find . -name '*.rpm')Prior to installing MariaDB, be aware that it will conflict with an existing installation of MySQL. To check whether MySQL is already installed, issue the command:
rpm -qa 'mysql*'If necessary, you can remove found MySQL packages before installing MariaDB.
To install MariaDB, use the command:
rpm -ivh MariaDB-*You should see output such as the following:
Be sure to follow the instructions given in the preceding output and create a
password for the root user either by using mariadb-admin or by running the
/usr/bin/mysql_secure_installation script.
Installing the MariaDB RPM files installs the MySQL tools in the /usr/bin
directory. You can confirm that MariaDB has been installed by using the mariadb
client program. Issuing the command mariadb should give you the MariaDB
cursor.
See Also
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?

