gb
  English
Phone:  +1 (217) 636-4164
Skype:  onegbits
  1. Home
  2. Blog
  3. How To install mariaDB on Ubuntu 16.04

How To install mariaDB on Ubuntu 16.04

How To install mariaDB on Ubuntu 16.04

14

Sep, 16

102

How To install mariaDB on Ubuntu 16.04 MariaDB is a drop-in replacement for MySQL. It is easy to install, offers many speed and performance improvements, and is easy to integrate into most MySQL deployments. Answers for compatibility questions can be found at: MariaDB versus MySQL  Compatibility. MariaDB offers more storage engines than MySQL, including Cassandra (NoSQL), XtraDB (drop-in replacement for InnoDB), and OQGRAPH.
  • Install MariaDB on Ubuntu 16.04
First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.
apt-get update
apt-get upgrade
  • Installing MariaDB
Installing MariaDB is as simple as running just one command below:
apt-get install mariadb-server
If you want to install MariaDB 10.x Which is not included in distribution repository. We going to add MariaDB repo to our system:
sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://ftp.utexas.edu/mariadb/repo/10.1/ubuntu xenial main
Once the key is imported and the repository added you can install MariaDB with:
apt-get update
apt-get install mariadb-server
Once complete, you can verify MariaDB is installed by running the below command:
systemctl start mariadb
systemctl status mariadb
  • Securing MariaDB after installation
By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB:
mysql_secure_installation
Configure it like this:
- Set root password? [Y/n] y
- Remove anonymous users? [Y/n] y
- Disallow root login remotely? [Y/n] y
- Remove test database and access to it? [Y/n] y
- Reload privilege tables now? [Y/n] y
To log into MariaDB, use the following command (note that it’s the same command you would use to log into a MySQL database):
mysql -u root -p
Congratulation’s! You have successfully installed MariaDB.
Leave A Comment
We are with you

24 X 7 X 365

+1 (217) 636-4164

©2017 1Gbits. All rights reserved