Start and Stop MySql in Mac Os X 10.5 Leopard

Yay! Its finally here! The newest version of my favorite operating system. And it comes with 98% of my dev stack ALREADY installed! Yay! This is perfect.

Wait.. ok, no MySql. Thats ok, I'll just install it...Wait.. why isn't it running...why isn't this stupid preference panel turning it on!!!! ARGHHH!

Ok, that may have just happened to you, and you dramatically hit the Google looking for answers. So answers I give you.

If you want to start MySql in Leopard, you need to call the startup item directly from the command line:

sudo /Library/StartupItems/MySQLCOM/MySQLCOM start  

And to stop it:

sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop  

Not so bad. But long... So make an alias in your .bash_profile

alias start_mysql="/Library/StartupItems/MySQLCOM/MySQLCOM start"  alias stop_mysql="/Library/StartupItems/MySQLCOM/MySQLCOM stop"  

Happier? Relaxed? Good.

Other useful things

Icon organizer can help you to arrange your Desktop icons
The advantages of the Internet
Movie organizing software
Mac software programs
Programming C, C++, perl, PHP, java and javascript
Finding Mac Software As Well As Popular Mac Software
Php and Mysql development
Introduction to PHP
Php and Mysql Programming Security
MySQL – most popular open source database in the planet
Why use PHP for dynamic web development