This is a Mini-HowTo or procedural tutorial on installing MariaDB seamlessly and effortlessly:
The Question: On a fresh installation of Slackware Linux, how do I swap out and replace MySQL for MariaDB?
Here are the steps in order to affect a complete replacement of MySQL with MariaDB on Slackware Linux, and then initialize and start the mysql (MariaDB) daemon.
1.) We begin by selecting a mirror from /etc/slackpkg/mirrors. This is a good one to use, but YMMV:
2.) We add the following to /etc/slackpkg/blacklist:
3.) Now we remove MySQL:
4.) Now we install MariaDB and update everything:
# sbopkg -i libevent
# sbopkg -i mariadb
# slackpkg update
# slackpkg update gpg
# slackpkg install-new
# slackpkg upgrade-all
# mysql_install_db --user=mysql
# chmod +x /etc/rc.d/rc.mysqld
# /etc/rc.d/rc.mysqld start
...and you're all done!
Also, the SBo has the following to say about installing MariaDB:
If you want to build the embedded mysql server (libmysqld), which
you will need if you plan to (re)build amarok, then run the script
with EMBEDDED=yes in the environment, but be aware that because
mariadb builds this as shared library, applications linking it
will no longer work with Slackware's mysql package.
Does one need to build libmysqld from the MariaDB SBo too for any other purpose than if they wanted to rebuild amarok for some reason?
Please offer any and all thoughts or corrections you may have.