Installing the latest stable version of Mariadb, v. 10.1, is pretty straight forward.
Start off by heading over to the repo configurator and getting the links for your version of Ubuntu: LINK
For us the commands were as follows, enter them at terminal:
Now to install MariaDB,
The setup will ask you to set a password and that’s it. To access the Mysql shell via terminal do the following:
A prompt will show up asking you for the password, enter that and hit Enter.