LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-15-2005, 08:55 AM   #1
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Rep: Reputation: 32
Trouble starting mysqld


Hi,

I am currently working on Slackware 10.0
I am experiencing problems with starting the mysqld daemon.



Here's what I am doing :

Code:
koodoo@knapsacker:~$ su
Password:
root@knapsacker:/home/koodoo# sh /etc/rc.d/rc.mysqld start
root@knapsacker:/home/koodoo# Starting mysqld daemon with databases from /var/lib/mysql
050815 19:20:34  mysqld ended
This was my attempt to start the server. After the last line I get a cusor blinking at me i.e. I do not get back to the command prompt.



If now I try to start the client program I get the almost obvious error message :

Code:
koodoo@knapsacker:~$ mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)
koodoo@knapsacker:~$

Thanks in anticipation.
 
Old 08-15-2005, 09:30 AM   #2
zaert
LQ Newbie
 
Registered: Jul 2005
Distribution: ubuntu, slackware
Posts: 21

Rep: Reputation: 15
At the first run, you must create the mysql database.
Read the /etc/rc.d/rc.mysqld to see how to do it.
su mysql
mysql_install_db
 
Old 08-15-2005, 10:18 AM   #3
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Original Poster
Rep: Reputation: 32
Hi, Thanks Zaert,

I read the /etc/rc.d/rc.mysqld file and followed the steps and my mysqld daemon is working fine.


I have one more question though.
When I start the ssh daemon or for that matter any other daemon service, I usually get back to the command prompt i.e. :
Code:
koodoo@knapsacker:~$ su
Password:
root@knapsacker:/home/koodoo# sh /etc/rc.d/rc.sshd start
root@knapsacker:/home/koodoo#
But when I start the mysql daemon this does not happen, and the daemon occupies the terminal I used to invoke it.

Code:
koodoo@knapsacker:~$ su
Password:
root@knapsacker:/home/koodoo# sh /etc/rc.d/rc.mysqld start
root@knapsacker:/home/koodoo# Starting mysqld daemon with databases from /var/lib/mysql
<a cursor sits here>
Of course I can run it in the background, use nohup.
But my question is why does it not happen by default in the first place like for sshd.
(It's a daemon right ?)

I do not know much about this and any help will be appreciated.
Thanks again in anticipation.

Last edited by koodoo; 08-15-2005 at 10:21 AM.
 
Old 08-16-2005, 02:01 AM   #4
zaert
LQ Newbie
 
Registered: Jul 2005
Distribution: ubuntu, slackware
Posts: 21

Rep: Reputation: 15
After running /etc/rc.d/rc.mysql start, hit return to get back the console prompt.
mysql runs as a daemon, but its console message is not correctely finished.
 
Old 08-16-2005, 10:09 AM   #5
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Original Poster
Rep: Reputation: 32
Hi, thanks again Zaert,

I hit the enter key and got my konsole prompt back.


Thanks a lot.
 
  


Reply


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
Trouble starting Amigo Gag Halfrunt Amigo 1 03-09-2005 01:59 AM
starting mysqld + OpenBSD Gsee *BSD 0 02-01-2005 05:36 AM
starting mysqld zobra Linux - Software 6 12-06-2004 11:27 PM
HELP! mysqld starting problem pravi Linux - Software 1 10-27-2004 11:20 AM
Trouble starting Proftp kaidoggy Linux - Software 6 04-01-2004 12:12 PM


All times are GMT -5. The time now is 08:30 PM.

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