Installing MySQL on Mac OS X Lion 10.7.5

Hi,

I’m reading PHP & MySQL Novice to Ninja (5th edition).

I’ve installed MySQL in Mac OS X Lion (10.7.5) but when I go to the terminal (following instructions in Appendix A) and write:

“sudo /usr/local/mysql/bin/mysqld_safe”, I get this message:

"WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type “man sudo” for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:"

And I didn’t continue.

The version of MySQL that I’ve downloaded is “Mac OS X ver. 10.6 (x86, 64-bit), DMG Archive” and my processor is 2.2 GHz Intel Core i7.

Previously I installed XAMPP and worked fine and then uninstalled it by moving it to the bin.

Thanks,

Carolina.

That’s just a warning, to let you know, that you are executing command as root. I think it pops up only first time when using sudo, later on it should only request the password. To start mysql, you should continue and enter the password.

Thanks, yes that’s right, it only happens the first time.