Elizabeth Fust9,651 Points
Error Establishing a Database Connection
I followed the instructions for using MAMP and installing WordPress, and I was able to work on a website in wordpress for a few hours yesterday. Today, I opened MAMP, clicked "open webstart page" then clicked "My Website." I got the error message "Error Establishing a Database Connection. I went back to MAMP page and clicked "Tools" and then "phpMyAdmin", I got an error that read, in part:
"phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server."
I opened wp-config.php, and the username is the same as I put in yesterday (per the video's instructions): wpuser. The password is the same password that I had generated randomly yesterday when I set it up.
I don't know what to do. Its so frustrating. I need to be working on my website.