Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 09-21-2007, 09:22 PM   #1
LQ Newbie
Registered: Dec 2004
Location: Philippines
Distribution: Slackware v10.1 and Ubuntu v5.04
Posts: 27

Rep: Reputation: 15
Question Starting MySQL automatically on Slackware 10 on system startup

How do you run MySQL on Slackware 10 on system startup? I already changed permissions for rc.mysqld to 755. Also, I ran mysql_install_db. On system startup, I get the following error message:

STOPPING server from pid file /var/run/mysql/
Old 09-22-2007, 06:50 AM   #2
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
If you have not done the initial setup of MySQL like this (or with sudo, your choice):
su -
enter root password
mysql_install_db --user=mysql
you'll get that (the important one is the "--user=mysql").

If you did not do as above, and you do not have any data bases in /var/lib/mysql, you can remove that directory, run mysql_install_db as shown and you'll probably be OK.

You can manually start the MySQL daemon with:
su -
/etc/rc.d/rc.mysqld start
Old 09-24-2007, 01:40 AM   #3
LQ Newbie
Registered: Dec 2004
Location: Philippines
Distribution: Slackware v10.1 and Ubuntu v5.04
Posts: 27

Original Poster
Rep: Reputation: 15
Since MySQL could not write to /var/run/mysql, I changed its ownership.

chown -R mysql /var/lib/mysql

Then, I re-ran mysql_install_db.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware commands (stopping samba from starting automatically, etc) fyr3 Slackware 6 06-24-2007 08:21 PM
MySQL is not starting automatically DdOs Linux - Software 14 10-02-2006 05:28 AM
Login user automatically on system startup, and then start X locodude Linux - Security 1 02-26-2006 05:02 PM
how to run system-config-soundcard automatically during starting process? leduytien Linux - Software 1 02-11-2006 09:57 AM
Starting a vncserver instance automatically at startup paul.nel Linux - General 6 01-08-2004 08:24 PM

All times are GMT -5. The time now is 05:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration