The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
MySQL article - Sun and MySQL: How It Stacks Up for Developers iBot UNIX and Linux RSS News 0 02-28-2008 11:20 PM
Stoping & starting the cron daemon othman SCO 0 04-30-2007 11:23 AM
Problems starting apache 1.3 with mysql godspunk32 SUN Solaris 1 08-25-2006 10:56 AM
mysql would not start: missing mysql.sock xnightcrawl UNIX for Advanced & Expert Users 2 05-26-2006 11:06 AM
mysql not starting with fedora linux arunkumar_mca Linux 1 09-22-2005 09:26 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-13-2006
unispace unispace is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 8
Starting MySQL daemon

I'm running a FreedBSD server with mysql 4.1. When I start mysqld via the command:

# /usr/local/bin/safe_mysqld --user=mysql

it starts the mysql db (I know because the websites are running off of it) but does not return to a prompt, it will let me type but will not respond unless I restart the system. Any ideas on how to resovle this.

Thanks,

Last edited by unispace; 12-13-2006 at 01:32 PM..
  #2 (permalink)  
Old 12-13-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,969
I take it you're doing maintenance. Either that or BSD doesn't have an init system?

How about:
Code:
/usr/local/bin/safe_mysqld --user=mysql < /dev/null > /dev/null 2> /dev/null &

This will put it in background, detach it from your console, and prevent it from printing garbage on your screen.
  #3 (permalink)  
Old 12-13-2006
unispace unispace is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 8
Thanks,

I'm not doing maintenance but I just installed mysql and never configured it to run on init.

I will try that and let you/others know, will have to wait until tonight when my server traffic is less.

Thanks again.
  #4 (permalink)  
Old 12-13-2006
silicate silicate is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 22
you should edit the /etc/rc.conf and place mysql_enable="YES" in that file, then run /usr/local/etc/rc.d/mysql-server.sh start
  #5 (permalink)  
Old 12-13-2006
unispace unispace is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 8
I had already added mysql_enable="YES" in /etc/rc.conf but when a enter /usr/local/etc/rc.d/mysql-server.sh start it says "command not found"

By the way there is no file mysql-server.sh but there is mysql-server and substituting that for mysql-server.sh does not work either ("command not found")

Any ideas? All the help is greatly appreciated.
  #6 (permalink)  
Old 12-13-2006
silicate silicate is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 22
just check the directory listing inside of /usr/local/etc/rc.d and execute the startup script relating to mysql, unless of course you did not install it from ports, if you compiled it by downloading the sources, i don't think the rc script is included.
Closed Thread

Bookmarks

Tags
sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:11 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0