This article describes how to download the RPM files and install them using the rpm command. Currently the MariaDB RPM files are not available through a Red Hat repository so you cannot use the yum command to install them. However, this is only a minor inconvenience.
Navigate to http://downloads.askmonty.org and choose the desired database version and then select the CentOS 5 amd64 RPMs for 64 bit architecture or CentOS 5 x86 RPMs for 32 bit architecture.
Clicking either of these 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.rpm
For a standard server installation you will need to download at least the client, shared, and server RPM files.
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:
yum info mysql
If necessary, you can remove MySQL like so:
yum remove mysql
To install MariaDB, use the command:
rpm -ivh MariaDB-*.
You should see output such as the following:
Preparing... ########################################### [100%] 1:MariaDB-shared ########################################### [ 14%] 2:MariaDB-client ########################################### [ 29%] 3:MariaDB-client ########################################### [ 43%] 4:MariaDB-debuginfo ########################################### [ 57%] 5:MariaDB-devel ########################################### [ 71%] 6:MariaDB-server ########################################### [ 86%] PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h hostname password 'new-password' Alternatively you can run: /usr/bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the MySQL manual for more instructions. Please report any problems with the /usr/bin/mysqlbug script! The latest information about MariaDB is available at http://www.askmonty.org/. You can find additional information about the MySQL part at: http://dev.mysql.com Support MariaDB development by buying support/new features from Monty Program Ab. You can contact us about this at sales@askmonty.org. Alternatively consider joining our community based development effort: http://askmonty.org/wiki/index.php/MariaDB#How_can_I_participate_in_the_development_of_MariaDB Starting MySQL....[ OK ] Giving mysqld 2 seconds to start 7:MariaDB-test ########################################### [100%]
Be sure to follow the instructions given in the preceding output and create a password for the root user either by using mysqladmin 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 MySQL
client program. Issuing the command mysql should give you the MariaDB
cursor.