Install MariaDB on Ubuntu

While there are many ways to install mariadb on Ubuntu and I am sure there are many instruction this little script runs through step by step and download MariaDB 13.0.3 from official site and install it on your not yet released Ubuntu 19.04, obviously this may work on other Ubuntu distributions and versions but has only been tested on a Virtual machine running Ubuntu 19.04

Script needs to be run as root or sudo
Initial steps for the script
Completing the download of the packag
Running throw the script few more steps
Password provided and configured
Services configure, started and tested – Installation Complete

For those interested in the script just download it and change permission as an executable and then run it:

$ wget -O Install-mariadb-10.3.13.bash http://bit.ly/2OO3yEy

$ chmod 755 Install-mariadb-10.3.13.bash

$ sudo ./Install-mariadb-10.3.13.bash

MANUALLY STEP BY STEP

shell> sudo su
shell> cd /tmp
shell> wget https://downloads.mariadb.org/interstitial/mariadb-10.3.13/bintar-linux-…
shell> apt-get install libaio1
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip shell> ln -s mariadb-10.3.13-linux-glibc_214-x86_64 mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> sudo apt-get install libaio1
shell> scripts/mysql_install_db –user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe –user=mysql &
shell> bin/mysqladmin -u root password ‘PassW0rd’
shell> apt install mariadb-client-core-10.3
shell> pkill mysql
shell> cp -v /usr/local/mysql/support-files/mysql.server /etc/init.d/mysql.server
shell> update-rc.d mysql.server defaults
shell> /etc/init.d/mysql.server start
shell> /etc/init.d/mysql.server status
shell> mysql -u root -p -h 127.0.0.1

Any issues let me know here or at Twitter: @gcclinux

Donate

Leave a Reply