Re:MariaDB 10
by madsushi on Monday March 31, 2014 @04:34PM
(#7503965)
You can literally just type 'apt-get install mariadb-server' into Ubuntu (once you've added the sources) and you won't even know MySQL is gone. You can even still type 'mysql -p' to log in to MariaDB locally.
[ Parent
| on HN ]
Careful! At least for mariadb 5.5 setup on Ubuntu 12.04 LTS, you need to pin the mariadb versions of packages because Ubuntu breaks stuff with their updates.
# cat /etc/apt/preferences
Package: *
Pin: origin repo.percona.com
Pin-Priority: 1003
Package: *
Pin: origin ftp.osuosl.org
Pin-Priority: 1002
# tail /etc/apt/sources.list
deb ftp://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main
deb-src ftp://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main>'apt-get install mariadb-server'
This simple command replaces mysql in one shot? I might test it tonight if so. Do I have to run mysql_upgrade?
Got a good recommendation for a guide?
The MariaDB page has great instructions for various distros:
https://downloads.mariadb.org/mariadb/repositories/#mirror=o...
Just pick your distro and you're good to go. I didn't have to run anything else.