Change mysql root password in MAMP

Version: MAMP 2.1.1 (2.1.1)

Prerequisites: Servers are running.

To change the database root password, open the terminal and perform the following command:

/Applications/MAMP/Library/bin/mysqladmin -u root -p password

Enter the old password (root for a new install) and then the new one twice.

Then modify following files to configure the new root password there:

/Applications/MAMP/bin/phpMyAdmin/config.inc.php
/Applications/MAMP/bin/mamp/index.php

If you really don't want any warning you can also modify:

/Applications/MAMP/bin/repairMysql.sh
/Applications/MAMP/bin/checkMysql.sh
/Applications/MAMP/bin/quickCheckMysqlUpgrade.sh

tweet: