How do I start MySQL server without using startup script /etc/init.d/mysql?
MySQL startup script only works if you have installed MySQL server using binary method such as apt-get, rpm command or up2date/yum tools etc.
All you need to do is use mysqld_safe command to start the mysqld daemon on Unix or Linux oses. So to start MySQL just type following command:
# /usr/bin/mysqld_safe &
Usually mysqld_safe located at /usr/bin/ directory. However, if you custom compiled MySQL then it will be available in your custom directory (specified using –prefix=/path/to/dir option to ./configure command). For example if you installed MySQL in /server/mysql directory then you need to pass this option to mysqld_safe command:
# /usr/bin/mysqld_safe --basedir=/server/mysql --datadir=/data/mysql --log=/var/log/mysql.log &
Read man page of mysqld_safe for more information.
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:
- MySQL startup script under BSD/Linux
- OpenBSD Install MySQL Server
- Howto: Use mysql or run mysql queries from shell script
- How To Start and Stop MySQL Database Server From A Shell Prompt
- How to find out if mysql is running on linux
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
Yesterday ~ 1 Comment
Yesterday ~ 3 Comments
Yesterday ~ 2 Comments
Yesterday ~ 3 Comments
Yesterday ~ 13 Comments