Trying to configurate localhost database password for Mysql in Macos x Snow Leopard:
mysqladmin -u root password 'password'
And I got this error:
-bash: mysqladmin: command not found
If you used the OS X mysql installer from mysql.com, you'll need to add the mysql bin to your path. You can do this in your .bash_profile
, for instance.
PATH="/usr/local/mysql/bin:$PATH"
Then you should be able to type which mysqladmin
and see /usr/local/mysql/bin/mysqladmin
as the result.