LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-13-2004, 03:45 PM   #1
Ryand833
Member
 
Registered: Jan 2004
Distribution: Fedora Core 4
Posts: 31

Rep: Reputation: 15
MySQL 4.0.18 on RH9, Problems


I'm having some problems getting MySQL to start itself automatically when Linux boots.

I downloaded MySQL from mysql.com and compiled it, got it to run just fine, i just have to start it manually myself everytime i boot up.

I've been reading a lot of posts on here about rc.local and init.d and decided to try the rc.local approach. I added this line to the bottom of my rc.local file:

/usr/local/mysql/bin/mysqld_safe --user=mysql

Now, when linux boots up, I get the message "MySQL Server started, using databases from /etc/lib/something/something" and it just hangs at that screen, not doing anything.

I went in with my rescue disk and removed that line, read some more documentation and saw that the mysql documentation says to copy the mysql.server file to the init.d folder, then issue the command "chkconfig -add mysql.server"

So i copied the file over and tried to run that command, says it doesnt recognize the "chkconfig" command.

Anyone got any ideas on how to do this?
 
Old 02-13-2004, 04:44 PM   #2
Ryand833
Member
 
Registered: Jan 2004
Distribution: Fedora Core 4
Posts: 31

Original Poster
Rep: Reputation: 15
woohoo

Ok i fixed it... If anyone else is having this problem, here's what I did

I used the 'su' command to gain privileges, open up the file /etc/my.cnf in my configuration, i had to change the basedir of my mysql installation to /usr/local/mysql as it was set to blank, then copy the file mysql.server (included with the mysql installation i downloaded) to the folder /etc/init.d -- I then CD'd to the folder /sbin and typed chkconfig --add mysql.server, then rebooted, and it works now :-)
 
  


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
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-08-2008 12:48 AM
mysql server for rh9 hariiyer Red Hat 4 03-04-2005 09:50 PM
Upgrading to MySQL 4.1.2 on RH9 usef Linux - Software 2 06-12-2004 10:43 PM
MySQL on RH9 still giving problems even after permission changes linuxnuby Linux - Software 2 02-04-2004 11:44 AM
set up mysql on rh9 DKY Linux - Newbie 5 08-04-2003 02:28 PM


All times are GMT -5. The time now is 06:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration