LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   start mysql automatically (https://www.linuxquestions.org/questions/linux-newbie-8/start-mysql-automatically-278054/)

compzoo 01-15-2005 08:20 AM

start mysql automatically
 
is there a way to have mysql start automatically? now on reboot i have to type mysqld_safe to start it.

thanks

david_ross 01-15-2005 08:21 AM

Try running:
chkconfig mysqld on

compzoo 01-15-2005 08:27 AM

Quote:

Originally posted by david_ross
Try running:
chkconfig mysqld on

i get unknown service????

michaelk 01-15-2005 09:26 AM

It might be mysql instead of mysqld. The following command will list all configured services.
chkconfig --list

chkconfig is the command line routine to configure services. If the previous command shows mysql then to configre mysql start at boot.
chkconfig --level 35 mysql on

To start mysql using the init scripts:
service mysql start

Its been awhile since I've played with SuSE but yast should be able to configure services to run at boot.

If you installed mysql from source then you will need to add the startup scripts to init.d or add a line to the rc.local file to start mysql.

csfalcon 01-15-2005 10:47 AM

In Yast you should be able to pick to install/uninstall software packages, under the section for MySQL make sure you select "mysql server", it should setup the startup script for you.


All times are GMT -5. The time now is 12:54 PM.