Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save webolizzer/7b5ee1ed5ed98c87c4b1ca831851c33f to your computer and use it in GitHub Desktop.
Save webolizzer/7b5ee1ed5ed98c87c4b1ca831851c33f to your computer and use it in GitHub Desktop.
Install MariaDB 10.2.6 on Ubuntu 16.04 xenial
/**
* @author github.com/webolizzer
* You can buy me a coffee and a Kit-Kat @ paypal.me/webolizzer
* Thank you! :)
*/

// backup old DB

$ cp -a /var/lib/mysql/ /var/lib/mysql.bak
$ mysqldump --user=root --password='7[q!eEx~Zcx%y7.6' --all-databases > /tmp/all-database.sql

// uninstall old mariadb

$ systemctl stop mysql
$ apt-get remove --auto-remove mariadb-server

// install new mariadb
// show all packages @ https://downloads.mariadb.org/mariadb/10.2/

$ wget http://mirror.23media.de/mariadb/mariadb-10.2.6/repo/ubuntu/mariadb-10.2.6-ubuntu-xenial-amd64-debs.tar
$ tar -xf mariadb-10.2.6-ubuntu-xenial-amd64-debs.tar
$ mariadb-10.2.6-ubuntu-xenial-amd64-debs/setup_repository
$ apt-key update && apt-get update && apt-get install mariadb-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment