I recently changed my root password for MySQL and forgot that I had done so.. when I restarted MAMP I got :
Error: Could not connect to MySQL server!
Simple fix, open :
and update the root users password :
$link = @mysql_connect(':/Applications/MAMP/tmp/mysql/mysql.sock', 'root', 'newpassword');
if you get this screen :
Simple Fix : Open
Update line below with new password (note: this is for a basic install of MAMP on Mac).
$cfg['Servers'][$i]['password'] = root