Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I changed the root user password in phpMyAdmin and now it cannot connect to the database. Does anyone know where, in the MAMP folder structure, where to hardcode the new password in?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Inside: /Applications/MAMP/bin/phpMyAdmin, there is a file named config.inc.php.

Inside of that file in your favorite text editor, you should be able to search for $cfg['Servers'][$i]['password'] and then modify the text in single quotes. (Which is 'root' by default.) Change that to whatever you changed your password to, ensure it's quoted as necessary, and refresh. You should instantly be connected!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.