MAMP MySQL cannot access

Some important notes for root password change for MAMP

To change root password to empty/blank again, open terminal and type
/Applications/MAMP/Library/bin/mysqladmin -u root -p’root’ password ”
(root is the original password for mysql in mamp)

MAMP page
In: /Applications/MAMP/bin/mamp/index.php
Change to: $link = @mysql_connect(‘:/Applications/MAMP/tmp/mysql/mysql.sock’, ‘root’, ‘newpassword’);

In: /Applications/MAMP/bin/phpMyAdmin/
Change to: $cfg[‘Servers’][$i][‘password’] = root

Leave a Reply

Your email address will not be published. Required fields are marked *