LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-15-2005, 09:20 AM   #1
compzoo
Member
 
Registered: Jan 2005
Location: Indiana
Distribution: Suse 9
Posts: 38

Rep: Reputation: 15
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
 
Old 01-15-2005, 09:21 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Try running:
chkconfig mysqld on
 
Old 01-15-2005, 09:27 AM   #3
compzoo
Member
 
Registered: Jan 2005
Location: Indiana
Distribution: Suse 9
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by david_ross
Try running:
chkconfig mysqld on
i get unknown service????
 
Old 01-15-2005, 10:26 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,426

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

Last edited by michaelk; 01-15-2005 at 10:32 AM.
 
Old 01-15-2005, 11:47 AM   #5
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

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


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 do I automatically start a program at start up? victordh Linux - General 7 10-27-2013 07:02 AM
How can mySQL start automatically on boot ? John_Emad Linux - Software 6 06-24-2005 01:33 PM
why my MySQL was automatically stopped baosheng Linux - Software 0 02-01-2005 06:36 PM
start apps automatically on start up? chunlee Linux - Newbie 3 09-04-2004 01:58 PM
X won't start automatically urinal cake Linux - Newbie 5 03-08-2002 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:03 AM.

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