MySQL startup script under BSD/Linux
You can start the MySQL server directly as described here. But most Linux distribution comes to special start and stop script. First, you must login as the root user. Use su - command to login as the root user.
If you are using Red Hat Linux / Fedora Linux:
Start MySQL
# service mysql start
OR
# /etc/init.d/mysql start
Stop MySQL
# service mysql stop
OR
# /etc/init.d/mysql stop
If you are using Debian Linux:
Start MySQL
# /etc/init.d/mysql start
Stop MySQL
# /etc/init.d/mysql stop
If you are using FreeBSD:
Open /etc/rc.conf file and add following line:
vi /etc/rc.conf
And append following line:
mysql_enable="YES"
To Start MySQL under FreeBSD:
#/usr/local/etc/rc.d/mysql-server.sh start
To Stop MySQL under FreeBSD:
#/usr/local/etc/rc.d/mysql-server.sh stop
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- How do I start MySQL server without using startup script /etc/init.d/mysql?
- Howto: Use mysql or run mysql queries from shell script
- OpenBSD Install MySQL Server
- How to find out if mysql is running on linux
- MySQL command to show list of databases on server
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!


Recent Comments
Today ~ 3 Comments
Today ~ 57 Comments
Yesterday ~ 9 Comments
Yesterday ~ 7 Comments
Yesterday ~ 1 Comment