LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 03-24-2010, 08:28 AM   #1
siwelb
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Problem Starting MySQL On Boot


I have installed MySQL 5.0.27 on RHEL5 using the RPMs from the MySQL site (RHEL 4 version). I'm able to start MySQL manually by running the mysqld start script but I'm having trouble getting it to start when the server is rebooted. I've already run "chkconfig" and mysqld is on for levels 2, 3, 4 and 5. I was told that chkconfig takes care of symbolic links and everything so I didn't think I had to do anything manually with those. When I start the server and check processes I see the following:

Quote:
root 3494 2258 0 08:44 ? 00:00:00 /bin/sh /etc/rc5.d/S64mysqld start
After 30 seconds or so, this disappears and MySQL is not started. Any suggestions?

Thanks,
Brian
 
Old 03-24-2010, 12:43 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
You could use yum to install the Red Hat mysql packages
I would uninstall the other one first
Code:
 rpm -q php-mysql mysql-server mysql
Whatever is listed from that command, remove using
Code:
 rpm -e php-mysql mysql-server mysql
then install and configure the red hat packages using the following commands :
Code:
yum install php-mysql mysql mysql-server
/sbin/chkconfig --levels 2345 mysqld on
/etc/init.d/mysqld start

Last edited by smoker; 03-24-2010 at 12:52 PM.
 
Old 04-02-2010, 01:20 AM   #3
mweed
Member
 
Registered: Mar 2006
Posts: 33

Rep: Reputation: 17
I take it you are using the mysql community packages because you need mysql 5 and rhel4 only ships with mysql 4.

How exactly did you install the community packages? Were the RHEL mysql packages removed before using the community packages?

What error messages are being logged? console mysqld.log messages etc.

By mysqld start script do you mean /etc/init.d/mysqld? if so what does ls -l /etc/rc5.d/S64mysqld say its pointing to?

If there is a messup you could try:
chkconfig --del mysqld
chkconfig --add mysqld

-- EDIT --
If I recall the community edition uses mysql instead of mysqld for the name of the initscript. Are there both /etc/init.d/mysql and /etc/init.d/mysqld files?

Last edited by mweed; 04-02-2010 at 01:23 AM. Reason: remmembered stuff
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on starting mysql.server and postfix at boot satimis Debian 5 11-02-2008 07:26 PM
Problem Starting MySQL on Fresh Fedora 8 Install w/ Yum'd MySQL blong4life Linux - Server 2 07-04-2008 07:44 PM
problem starting MYSQL 4.0.1 rixride00 Linux - Software 2 04-06-2004 10:45 AM
starting mysql on system boot jleavitt Debian 7 09-30-2003 08:13 PM
Starting apache and mysql as service on boot :: buddy Linux - General 2 12-30-2002 02:51 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 01:14 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