DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 17th September 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Thanked 0 Times in 0 Posts
Default MYSQL HOW TO START

Hi everyone recently I have installed mysql using the following:

sudo pkg_add -r mysql51-client
sudo pkg_add -r mysql51-server
sudo pkg_add -r mysql51-scripts

under /usr/local/etc/rc.d, I can't find mysql 's script.

How do I start, restart or stop mysql without restarting?
Reply With Quote
  #2   (View Single Post)  
Old 17th September 2008
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 337
Thanked 32 Times in 30 Posts
Default

If there's no /usr/local/etc/rc.d/mysql-server on your machine, something went wrong. It gets started by mysql_enable="YES" in /etc/rc.conf.
Reply With Quote
  #3   (View Single Post)  
Old 17th September 2008
anemos's Avatar
anemos anemos is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Ελλάδα
Posts: 53
Thanked 5 Times in 5 Posts
Default

Code:
/usr/local/etc/rc.d/mysql-server restart
Reply With Quote
  #4   (View Single Post)  
Old 17th September 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Thanked 0 Times in 0 Posts
Default

Code:
[disappearedng@ /usr/local/etc/rc.d]$ cd /usr/local/etc/rc.d/    
[disappearedng@ /usr/local/etc/rc.d]$ ls -a
.                       dbus                    snmpd
..                      ffserver                snmptrapd
001slpd.sh              gdm                     svnserve
apache                  hald                    system-tools-backends
avahi-daemon.sh         mdnsd                   xfs
avahi-dnsconfd.sh       openssh
cupsd                   pure-ftpd
Reply With Quote
  #5   (View Single Post)  
Old 17th September 2008
anemos's Avatar
anemos anemos is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Ελλάδα
Posts: 53
Thanked 5 Times in 5 Posts
Default

Could you try this?
Quote:
/usr/local/share/mysql/mysql.server restart
Reply With Quote
  #6   (View Single Post)  
Old 18th September 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Thanked 0 Times in 0 Posts
Default

Oh.
I realize that I can't access the script using
/usr/local/etc/rc.d/mysql-server
but
sh /usr/local/etc/rc.d/mysql-server.

I came from ubuntu and to run this script, all I need is /etc/init.d/mysql start
but what have I lacked in my system which forces me to use sh for scripts?

Thx
Reply With Quote
  #7   (View Single Post)  
Old 18th September 2008
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Thanked 36 Times in 34 Posts
Default

Quote:
Originally Posted by disappearedng View Post
Oh.
I realize that I can't access the script using
/usr/local/etc/rc.d/mysql-server
but
sh /usr/local/etc/rc.d/mysql-server.

I came from ubuntu and to run this script, all I need is /etc/init.d/mysql start
but what have I lacked in my system which forces me to use sh for scripts?

Thx
Make sure that /usr/local/etc/rc.d/mysql-server is executable.
# chmod 555 /usr/local/etc/rc.d/mysql-server
Reply With Quote
  #8   (View Single Post)  
Old 18th September 2008
RudiK RudiK is offline
Port Guard
 
Join Date: May 2008
Posts: 10
Thanked 0 Times in 0 Posts
Default

One thing that catches a lot of people coming from Linux is that you have to use su - instead of su -m
Reply With Quote
Reply

Tags
mysql

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which is the best solution from start bsd.mp? aleunix OpenBSD General 18 4th May 2009 06:33 PM
MySQL: How to start the mysqld rtwingfield FreeBSD General 2 25th December 2008 07:59 PM
Can start rtorrent like apache and mysql when system boot mfaridi FreeBSD Ports and Packages 0 26th November 2008 09:27 AM
MYSQL can't start "UNABLE TO LOCK disappearedng FreeBSD General 0 14th October 2008 02:01 AM
KDE wont start up dctr FreeBSD General 9 11th June 2008 05:59 AM


All times are GMT. The time now is 07:38 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick