Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-30-2010, 07:55 AM
|
#1
|
LQ Newbie
Registered: Sep 2010
Posts: 3
Rep:
|
starting mysql at bootup
Hi all,
I have a server running Mandriva Enterprise Server 5 and have configured apache/mysql/php, the problem i have is that when i reboot the server i have to manualy start mysql.
Can someone please tell me what file i need to configure to enable mysql to start at boot up and what line of code i need to enter to enable this.
many thanks
|
|
|
11-30-2010, 07:58 AM
|
#2
|
Member
Registered: Feb 2008
Location: Belgium
Distribution: PCLinuxOS
Posts: 102
Rep:
|
I got the following with a Google search:
http://mandrivausers.org/index.php?/...t-boot-solved/
A piece from the site where the link points to:
Quote:
Alternatively, to add these commands to start when you boot the machine, edit /etc/rc.local and add these to the bottom of the file:
/usr/local/apache2/bin/httpd
/usr/local/mysql/bin/mysqld
|
|
|
1 members found this post helpful.
|
11-30-2010, 08:36 AM
|
#3
|
LQ Newbie
Registered: Sep 2010
Posts: 3
Original Poster
Rep:
|
Excellent, that worked, unbelievable fast response.
thanks again
|
|
|
11-30-2010, 08:43 AM
|
#4
|
Member
Registered: Jun 2003
Posts: 481
Rep:
|
Did you install from RPMs or build from source?
If the former, which is the proper way, unless you have a very compelling reason otherwise, startup/shutdown scripts will have been installed in /etc/init.d/
These can be added to the startup/shutdown sequence by either manually linking to the requisite runlevel control directory (/etc/rc.d/rc?.d/ or by using chkconfig.
Building from source is all very well for the experience, but it forces you to do all your updates manually and often is not entirely 'in keeping' with the specifics of the distro.
|
|
|
12-01-2010, 02:51 AM
|
#5
|
LQ Newbie
Registered: Sep 2010
Posts: 3
Original Poster
Rep:
|
Thanks for your quick reply, i installed from RPM, now that i have put correct config in rc file all works fine.
thanks
|
|
|
All times are GMT -5. The time now is 02:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|