FreeBSD start / stop / restart MySQL Server
Q. I'm using FreeBSD server version 6.2. How do I start / stop MySQL server from a shell prompt over ssh session?
A. First login as the root user. Next make sure MySQL service is enabled. Just open /etc/rc.conf file using vi text editor:
# vi /etc/rc.conf
Append / modify following line to start MySQL service:
mysql_enable="YES"
Save and close the file.
Task: Start MySQL server
Type the following command:
# /usr/local/etc/rc.d/mysql-server start
Task: Stop MySQL server
Type the following command:
# /usr/local/etc/rc.d/mysql-server stop
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Linux / UNIX FAQ:
- MySQL startup script under BSD/Linux
- How To Start and Stop MySQL Database Server From A Shell Prompt
- MySQL error 28 and solution
- Ubuntu Linux: Start / stop / restart OpenSSH / ssh server
- How do I start MySQL server without using startup script /etc/init.d/mysql?
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Please do not use the comment form to ask for help / question. Ask your question on the excellent Linux tech support forum. Thank you very much for stopping by our site!
Tags: freebsd_server, mysql_server, root_user, ssh_session, start_mysql, stop_mysql ~ Last updated on: October 9, 2007



Recent Comments
Today ~ 2 Comments
Today ~ 37 Comments
Today ~ 46 Comments
Yesterday ~ 2 Comments
Yesterday ~ 9 Comments