Originally posted by DaHammer
Most of the service scripts on Slackware are in /etc/rc.d, including the one for mysql, which is at /etc/rc.d/rc.mysqld. You'll need to make it executable, if it isn't already with a "chmod 755 /etc/rc.d/rc.mysqld" & then you start it with "/etc/rc.d/rc.mysqld start". The bootup scripts should pick it up and start it at bootup from then on. If that's not what you want, then you'll need to edit the bootup script that starts it.
Majority of the time it will not be placed there automatically.
Do these steps if you installed mysql during the initial installation:
1. mysql_install_db <To install your default Database>
2. chown -R mysql.mysql /var/lib/mysql <Changes ownership and permissions>
3. safe_mysqld & <Starts mysqld>
4. cp /usr/share/mysql/share/mysql/msql.server /etc/rc.d/rc.mysqld <Copies the default startup script to be used to your rc.d directory>
5. chmod +x /etc/rc.d/rc.mysqld <Makes the script executable>
6. Then add something like this to the rc.M script to read your mysql script you copied over so mysql will startup at boot time so you don't have to manually start it each time:
if [ -x /etc/rc.d/rc.mysqld ]; then
Hope this helps.