MariaDB on Ubuntu 12.04, dealing with upgrades

I am trying to use MariaDB instead of MySQL wherever possible. Oracle's attitude since the takeover of Sun has been quite appalling. See here (from https://mariadb.atlassian.net/browse/MDEV-3882):
This problem becomes more of an issue due to Oracle keeping security patches secret. This forces distros to upgrade to latest upstream version in released distros, which means we will more often get a newer mysql version on top of an earlier mariadb version, causing this issue.
You can find a solution in this AskMonty KB article:
https://kb.askmonty.org/en/drop-in-replacement-on-debian/

This solution was not enough for my situation. The mysql-common package is now also creating problems.
So I changed the suggested package pin with the following steps:

1. With admin rights, run this:
nano /etc/apt/preferences.d/mariadb
2. Paste this into that file, making sure that you change the origin according to your chosen MariaDB mirror:
Package: *
Pin: origin download.nus.edu.sg
Pin-Priority: 1000
 This seems to work for me so far, I hope it helps you!

Comments