Warning: This blog entry was written two or more years ago. Therefore, it may contain broken links, out-dated or misleading content, or information that is just plain wrong. Please read on with caution.
The recent release of Slackware 14.1 comes with a few improvements. One of which is that it now uses MariaDB in place of MySQL. MariaDB is basically the same database as MySQL just not tied to Oracle in any way (it even still uses mysqld as its daemon name).
However when you start slackware you will still see an error that mysql could not be started.
mysqld_safe mysqld from pid file /var/run/mysql/mysql.pid ended
Assuming that you selected to install the MySQL service when you setup slackware you are 99% the way to getting it up and running. Most of the configuration we had to do previously in slackware is unnecessary but there are still a few steps.
Step 1: Install system database
MariaDB still needs us to run the install script to setup its own internal database.
Step 2: Setup ownership permissions
Obviously will need to give the mysql user ownership of the required mysql files.
chown -R mysql.mysql /var/lib/mysql
Step 3: Start MariaDB
We can now start MariaDB
Step 4: Setup Root user password
As a final step set a root user password.
mysqladmin -u root password '[new-password]'