MySQL startup script under BSD/Linux

by on March 30, 2006 · 1 comment· LAST UPDATED March 30, 2006


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


# /etc/init.d/mysql start

Stop MySQL

# service mysql stop


# /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:


To Start MySQL under FreeBSD:

#/usr/local/etc/rc.d/ start

To Stop MySQL under FreeBSD:

#/usr/local/etc/rc.d/ stop

Tweet itFacebook itG+ itDownload PDF versionFound an error/typo on this page?

{ 1 comment… read it below or add one }

1 Howard Walker December 20, 2011 at 3:49 pm

None of these commands are recognised in Windows7 command prompt mode.
Does anyone know how to reset the root password in Xammp on Windows 7?


Leave a Comment

Tagged as:

Previous Faq:

Next Faq: