Database Reference
In-Depth Information
sudo add-apt-repository \
'deb http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu precise main'
The first command installs the
python-software-properties
package, which
contains the helper command we will use. The second command installs the GPG
key that is used to sign MariaDB packages. See the
MariaDB package security
section
later in this chapter for more information on this. The third command adds the
repository using the add-apt-repository command.
The displayed installation commands are as follows:
sudo apt-get update
sudo apt-get install mariadb-server
The
mariadb-server
package depends on the other MariaDB packages, so these two
commands are all we need to install MariaDB. Once the second
apt-get
command
finishes, MariaDB will be installed and running. Congratulations!
Jump ahead to the
MariaDB package security
section if you're interested in the
MariaDB signing keys or skip to the
After the installation
section if you want to start
using MariaDB right away.
Installing MariaDB on Fedora, Red Hat,
and CentOS
The procedure for installing MariaDB on Fedora, Red Hat, and CentOS makes use
of the
Yellowdog Updater, Modified
(
YUM
) package manager. There are two steps:
first, create a
repo
file for MariaDB and second, install MariaDB.
To generate the required text for the
repo
file, we visit the MariaDB Repository
Configuration Tool at:
http://downloads.mariadb.org/mariadb/repositories/
.
This tool is used for both APT-based Linux distributions such as Debian and Ubuntu,
and YUM-based Linux distributions such as Fedora, CentOS, and Red Hat.
Click on the distribution we are using, the release available, and the version of
MariaDB we want to install. After doing so, contents of the appropriate repo file will
be displayed.
For example, the generated text for MariaDB 10.0 on the 64-bit version of CentOS 6 is:
# MariaDB 10.0 CentOS repository list - created 2013-03-09 20:58 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]