LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-06-2006, 02:19 AM   #1
sunlinux
Member
 
Registered: Feb 2006
Distribution: RHCL 5
Posts: 239

Rep: Reputation: 30
starting mysql..


running redhat 4.0 with mysql installed over it.whenever i start my server i hv to manually start mysql. How i configure my linux so it automatically start mysql at system startup.

give me appropriate guide i am a new lerner.
 
Old 07-06-2006, 02:43 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
man init
man inittab

you'll know what runlevel is

To auto-start something on boot, do the following:
create script, which accepts (preferably, it can accept only first variant) 1 argument, and only in three variants: start, stop, restart. Guess what should the script do. Then chmod a+x it and put it in /etc/rc.d/init.d . Now, if you link it with a name starting with 'S' from /etc/rc.d/rc<number>.d, it will be run with "start" on entering the runlevel, if first letter is 'K' - with "stop". Order of processing is the same as with simple 'ls -l'.
 
Old 07-06-2006, 12:10 PM   #3
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
if you use the mysql standard package, simple, run as root and type

chkconfig --level 345 mysqld on

next time you start computer it will automatic turn on the mysqld.
Regards,
Ks
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting MySQL OLD Error : imeout error occurred trying to start MySQL Daemon Fr33B5D Linux - Software 9 10-28-2006 06:23 AM
Starting MySQL... darkarcon2015 Slackware 52 12-28-2005 05:52 AM
Help starting mysql GUIPenguin Linux - General 8 04-05-2005 09:23 AM
starting mysql apax Linux - Newbie 4 12-28-2003 07:50 AM
starting mysql studentforever Linux - Software 10 09-18-2003 04:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:43 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
Open Source Consulting | Domain Registration