Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-28-2003, 02:11 AM
|
#1
|
Member
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511
Rep:
|
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.
|
|
|
11-28-2003, 03:06 AM
|
#2
|
Member
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561
Rep:
|
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.
|
|
|
11-28-2003, 09:27 AM
|
#3
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
11-28-2003, 02:33 PM
|
#4
|
Member
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561
Rep:
|
It is with Slackware 9.1. rc.M already contains the startup check as well.
|
|
|
11-28-2003, 02:42 PM
|
#5
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.. 
|
|
|
11-28-2003, 09:03 PM
|
#6
|
Member
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561
Rep:
|
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.
|
|
|
11-28-2003, 09:32 PM
|
#7
|
Member
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511
Original Poster
Rep:
|
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....
|
|
|
All times are GMT -5. The time now is 10:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|