LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   how can i start mysqld? (https://www.linuxquestions.org/questions/slackware-14/how-can-i-start-mysqld-120664/)

yenonn 11-28-2003 02:11 AM

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.

DaHammer 11-28-2003 03:06 AM

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.

trickykid 11-28-2003 09:27 AM

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.

DaHammer 11-28-2003 02:33 PM

It is with Slackware 9.1. rc.M already contains the startup check as well.

trickykid 11-28-2003 02:42 PM

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.. ;)

DaHammer 11-28-2003 09:03 PM

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.

yenonn 11-28-2003 09:32 PM

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 02:02 PM.