LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-30-2010, 07:55 AM   #1
wayneBC
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Rep: Reputation: 0
Angry 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
 
Old 11-30-2010, 07:58 AM   #2
rubentje1991
Member
 
Registered: Feb 2008
Location: Belgium
Distribution: PCLinuxOS
Posts: 102

Rep: Reputation: 22
Wink

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.
Old 11-30-2010, 08:36 AM   #3
wayneBC
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Excellent, that worked, unbelievable fast response.

thanks again
 
Old 11-30-2010, 08:43 AM   #4
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
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.
 
Old 12-01-2010, 02:51 AM   #5
wayneBC
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Smile

Thanks for your quick reply, i installed from RPM, now that i have put correct config in rc file all works fine.

thanks
 
  


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
Starting Wireless on Bootup Kronoz Linux - Wireless Networking 2 04-15-2006 07:55 AM
daemons starting on bootup papajohns AIX 4 08-04-2004 01:27 PM
Starting services at bootup Lucasite Linux - Newbie 5 04-17-2004 02:08 PM
starting programs at bootup tcm_va Linux - Newbie 5 02-08-2003 08:30 PM
help starting xscreensaver at bootup rose_bud4201 Linux - Software 2 01-10-2003 06:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:50 PM.

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