MySQL and MAMP Command Line Question
My installation of MAMP appears to be working fine.
I'd like to change my root password for the MySQL install running under MAMP. As I understand it, this must be done from the command line. However, I'm having trouble doing this because my bash shell tries to apply the commands I enter to my non-MAMP install of MySQL.
I've tried to reconfigure my environment variables for my PATH in both my .profile and .bash_login files, but this isn't fixing the problem. For example, I've applied the following line to my .bash_login file:
export PATH="/Applications/MAMP/Library/bin:/usr/local/bin:/usr/local/sbin:
/usr/local/mysql/bin:$PATH"
Here I've added the path to my MAMP bin directory (where mysqladmin is found) before anything else ... however, I get the error message:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/private/tmp/mysql.socket' (2)
Which, of course, means that my command is being applied to my non-MAMP install of MySQL.
I'm not sure how to get around this ... can someone help me out?
Thanks.
Eight-Core Mac Pro (3 GHz 2x Quad-Core Intel Xeon), Mac OS X (10.5.5), 5GB 667 MHz DDR2 RAM, 2.5 TB RAID 0, 2x Superdrives