★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum4/HTML/000496.htmlNouvelle recherche | Portail wanayoo
DevShed Menu
* DevShed Home
* Developer News
* DevShed Brain Dump




UBBFriend: Email This Page to Someone!
  DevShed Discussion Forums
  MySQL
  how to start mysql at boot time in LInux

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   how to start mysql at boot time in LInux
gonja
Junior Member
posted May 24, 2000 09:43 PM     Click Here to See the Profile for gonja     Edit/Delete Message Reply w/Quote
hi everybody,

pls tell me how to start mysql server at boot time....

thanx

barrrt
Junior Member
posted May 25, 2000 11:50 AM     Click Here to See the Profile for barrrt     Edit/Delete Message Reply w/Quote
Hi,
I believe that differs between distributions, but on Red Hat or RH derived distro you can do this in the following way:

as root:

cd /etc/rc.d/rc3.d
ln -s /etc/rc.d/init.d/mysql S98mysql

That's it! :-) The above was done on Mandrake 7.0, which has the same structure as Red Hat. How does it work? /etc/rc.d/init.d contains scripts to start and stop services on your computer. By creating a symlink to mysql startup script in /etc/rc.d/rc3.d you're telling your system to run it during runlevel 3 startup, which is your regular login. You can also start and stop your services manually using files in /etc/rc.d/init.d directly, for example:

/etc/rc.d/init.d/mysql start
/etc/rc.d/init.d/mysql stop


barrrt

gonja
Junior Member
posted May 25, 2000 07:57 PM     Click Here to See the Profile for gonja     Edit/Delete Message Reply w/Quote
thanx u very much......

All times are MST (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | DevShed.com

Copyright © 1997-2000 ngenuity. All rights reserved.

Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.