Spent some time to make a more complete guide on easy, basic MySQL setup on a Slackware box. The two sources above were very helpfull, I especially recommend looking in the MySQL reference manual when you're lost.
So, the MySQL server doesn't work even though it came as an official package with Slackware? Here's what you need to do (all of this should be done as root):
1: Create grant tables (and whatever else)
You need to be user mysql so mysql owns the files you create:
su - mysql mysql_install_db exit
/etc/my-* files to use as a config file. If you don't know or care, use the small one:cp /etc/my-small.cnf /etc/my.cnf
cp /usr/share/mysql/mysql.server /etc/rc.d/rc.mysqld chmod a+x /etc/rc.d/rc.mysqld /etc/rc.d/rc.mysqld start
mysql -u root
mysql> SELECT Host, User FROM mysql.user;
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('new-password');
mysql> SET PASSWORD FOR 'root'@'yourhostname' = PASSWORD('new-password');
mysql> DELETE FROM mysql.user WHERE User = ''; mysql> FLUSH PRIVILEGES; mysql> exit
mysql> show databases; mysql> show tables; mysql> use test;