SlackwareThis 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.
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.
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.
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.
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
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....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.