Database Reference
In-Depth Information
To learn about installing MariaDB on Linux, read on. Otherwise, skip to the After the
installation section at the end of this chapter.
Installing MariaDB on Debian, Ubuntu,
and Linux Mint
The procedure for installing MariaDB on Debian, Ubuntu, and Linux Mint is easy,
and starts with a visit to the Repository Configuration Tool at:
http://downloads.mariadb.org/mariadb/repositories
This tool is used for APT-based Linux distributions such as Debian, Ubuntu, and
Mint, YUM-based Linux distributions such as Fedora, CentOS, and Red Hat, and
other distributions that have support for MariaDB built-in such as Mageia, Arch
Linux, and openSUSE.
Before using the tool you need to know which version of Ubuntu, Debian, or Mint to
use. If you do not know, an easy way to find out is with the following command:
cat /etc/lsb-release
Type the command into the terminal and you will get an output similar to the
following:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.4 LTS"
The output shows that this machine is running Ubuntu 10.04 LTS "Lucid". So using the
Repository Configuration Tool, click on Ubuntu , then 10.04 LTS 'lucid' , then on the
version or series of MariaDB you want to install. Lastly, click on the mirror you want
to use. The tool will then output three pieces of text. The first are the commands to add
the MariaDB repository to your system. The second contains the commands to install
MariaDB, and the third contains the text and alternate instructions in case adding the
repository using the first set of instructions did not work.
For example, the generated commands for adding a repository for MariaDB 10.0
on the 64-bit version of Ubuntu 12.04 LTS "Lucid" and using the osuosl mirror
are as follows:
sudo apt-get install python-software-properties
sudo apt-key adv --recv-keys \
--keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
 
Search WWH ::




Custom Search