LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 04-15-2005, 10:03 AM   #1
bshearer
Member
 
Registered: Apr 2005
Location: a little Forest in Virginia
Distribution: FreeBSD 5.3
Posts: 44

Rep: Reputation: 15
mysqld: Command not found


greetings!

here is my setup

openbsd 3.5

installed mysql-server-4.0.18

all appears ok except it created _mysql user and group and I already had mysql set as the userid and group. no biggie...

however, after a reboot it appears that mysqld did not start

when i enter mysqld the message Command not found appears.

any ideas?

thanks

buddy
 
Old 04-15-2005, 01:14 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Taken from the first hit on this google search...

Quote:
To configure OpenBSD to automatically start mysql with every system start-up then you can edit the rc.conf.local file to modfiy the configuration and rc.local to take action when the configurations are set.

Edit: /etc/rc.conf.local file to include in Section 2 the following lines:

mysql=YES

Edit: /etc/rc.local

After the 'starting local daemons' and before the following echo '.', Insert the following instructions to the /etc/rc.local file:
echo -n 'starting local daemons:'
# [ ... stuff left out ... ]

if [ X"${mysql}" == X"YES" -a -x /usr/local/bin/mysqld_safe ]; then

echo -n " mysqld"; /usr/local/bin/mysqld_safe --user=_mysql --log &

for i in 1 2 3 4 5 6; do
if [ -S /var/run/mysql/mysql.sock ]; then
break
else
sleep 1
echo -n "."
fi
done

fi
# [ ... stuff left out ... ]
echo '.'

Now each restart of the machine will automatically check to see whether we have enabled mysql in the configuration file (rc.conf) and then start the mysql daemon. If we wish to disable mysql we can simply change mysql=YES to mysql=NO

Note: /usr/local/share/mysql/mysql.server is a script for starting/stopping mysql daemon. The files are there with mysql-server-4.0.18 on OpenBSD 3.5 so your mileage may vary.
HTH
 
Old 04-15-2005, 01:20 PM   #3
bshearer
Member
 
Registered: Apr 2005
Location: a little Forest in Virginia
Distribution: FreeBSD 5.3
Posts: 44

Original Poster
Rep: Reputation: 15
yea, i saw that too but the line

Edit: /etc/rc.conf.local file to include in Section 2 the following lines:

stops me because I have no /etc/rc.conf.local file to edit

how do i get past this?

Thanks for your help!!!
 
Old 04-15-2005, 02:10 PM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
You create the file (it is not there in the base install).

Most .local files are not created for you because, by definition, they are for very specific local settings and changes.
 
Old 04-15-2005, 03:50 PM   #5
bshearer
Member
 
Registered: Apr 2005
Location: a little Forest in Virginia
Distribution: FreeBSD 5.3
Posts: 44

Original Poster
Rep: Reputation: 15
That did it.

Thanks to all

Buddy
 
  


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
mysqld running and reading for connections on port 3306, no port 3306 found from scan darkenigmaa Linux - Networking 10 07-13-2016 11:53 AM
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
mysqld command not found ojav Linux - Newbie 4 05-27-2005 07:46 AM
Why does mysqld not show up w/ps command baandar Linux - Software 3 09-01-2004 02:21 AM
mysqld command - help eduac Linux - Software 12 07-01-2003 01:15 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

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