LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-28-2003, 02:11 AM   #1
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Rep: Reputation: 30
how can i start mysqld?


how can i start mysqld? where is the path to start a services. in redhat, /etc/rc.d/init.d/ will be all the services started when the machine is booting.. then, where is the dir for services booting? how can i know which services that i had started?
thanks.
 
Old 11-28-2003, 03:06 AM   #2
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
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.

Last edited by DaHammer; 11-28-2003 at 03:07 AM.
 
Old 11-28-2003, 09:27 AM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Quote:
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:
Code:
if [ -x /etc/rc.d/rc.mysqld ]; then
  . /etc/rc.d/rc.mysqld
fi
Hope this helps.
 
Old 11-28-2003, 02:33 PM   #4
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
It is with Slackware 9.1. rc.M already contains the startup check as well.
 
Old 11-28-2003, 02:42 PM   #5
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Quote:
Originally posted by DaHammer
It is with Slackware 9.1. rc.M already contains the startup check as well.
Yeah well, he didn't state what version and his profile says he's using Redhat.. hopefully he's using Slackware or he's lost..
 
Old 11-28-2003, 09:03 PM   #6
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Well actually, it says:
Quote:
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 229
But, to be honest, I didn't look, just assumed.. Anyway, he hasn't replied, so I'll assume (again) that he got it worked out.
 
Old 11-28-2003, 09:32 PM   #7
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
i have going through the messages, but, i havent had time to configure it.. thanks anyway... i am using slackware 9.1, just migrated from redhat. there are many things that i am not familiar with... so, pls, dun feel hestited to drop advises for me. tonight, i will be configuring it...i will let u know the result... thanks for concern anyway....
 
  


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
How to start mysqld without the skip networking option? Niceman2005 Linux - Software 5 06-07-2005 07:36 PM
"mysqld ended" when trying to start mysql daemon guarriman Linux - General 1 01-19-2005 07:35 AM
How to start mysqld with the --old-passwords option ? alphaque Linux - Software 2 12-01-2004 07:54 PM
Slack 10, fresh install, mysqld start problem. jml75 Slackware 6 08-17-2004 09:26 PM
mysqld start linuxRules Linux - General 1 07-21-2002 03:06 PM


All times are GMT -5. The time now is 12:47 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration