Development Tools Using PHP with MySQL Connecting PHP to MySQL Creating the Products Table

Gareth Powell
PRO
Gareth Powell
Pro Student 7,016 Points

How to connect to mySQL server when it says "Access Denied"?

Hi Everyone,

I am trying to connect to the MySQL server via MAMP. I am using Windows 8. I also changed my password from the default to one I know. I thought I had done this correctly via phpMyAdmin. However, I now try to access it via MAMP and when following along in the course, yet it keeps saying "Access Denied".

Does anyone know how to sort this?

Thanks

Hugo Paz
Hugo Paz
15,605 Points

Hi Gareth,

Can you please tell us where you change the password? Did you change the password as well in the database.php file?

2 Answers

Chris Shaw
Chris Shaw
26,623 Points

Hi Gareth,

Resetting the MySQL password for MAMP requires another update which you can find information about at the below link, essentially you need to update the defined in phpMyAdmin's config file before it will allow access to the MySQL database again.

http://www.mamp.info/en/documentation/#q9

Gareth Powell
PRO
Gareth Powell
Pro Student 7,016 Points

Thanks Hugo Paz & Chris Upjohn . I think I have sorted it. Thanks again.

(Chris' suggestion was on track)