Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 1 down vote accepted

Inside: /Applications/MAMP/bin/phpMyAdmin, there is a file named

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

Your Answer


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.