Make MAMP PRO not ask about passwords on service restart
March 20, 2009 Leave a comment
Change your default MAMP password from ‘root’ to something more useful:
/Applications/MAMP/bin/mysql4/bin/mysqladmin -u root -p password newpassword
Edit the following files:
- /Applications/MAMP/bin/phpMyAdmin-X.X.X/config.inc.php
$cfg['Servers'][$i]['password'] = 'newpassword'; // change root to your new password
- /Applications/MAMP/bin/mamp/index.php
$link = @mysql_connect(’:/Applications/MAMP/tmp/mysql/mysql.sock’, ‘root’, ‘newpassword‘);
/Applications/MAMP/bin/stopMysql.sh
# /bin/sh
/Applications/MAMP/bin/mysql4/bin/mysqladmin -u root -pnewpassword –socket=/Applications/MAMP/tmp/mysql/mysql.sock shutdown
Tip taken from this site.