1

Every time I start MAMP and open the start page I get error can't connect to mysql. I'm not sure what I've done but I think I've reset the password and have now forgotten what I changed it too!

I've tried to change it in terminal however I just get: Access denied for user 'root'@'localhost' (using password: YES)

How can I fix this?

I have thought about just doing a new install on MAMP however I have a number of sites in my htdocs and don't want to lose them.

Here is the error I get:

enter image description here

halfer
  • 19,824
  • 17
  • 99
  • 186
PK333
  • 147
  • 1
  • 3
  • 13

2 Answers2

1

Why don't you change the Mysql Root Password in MAMP ?

Open MAMP => Server => Mysql => Change the root password (assuming you've MAMP PRO 2.1.1)

You won't leave your websites if you copy the htdocs directory located under :

/Applications/MAMP/htdocs (Assuming you're under OS X)

soyuka
  • 8,839
  • 3
  • 39
  • 54
  • Hi thanks for you help. I just have MAMP not the MAMP PRO, can I still do this? Do I need to do this is terminal? sorry if thats a dumb question I'm still getting use to using mamp – PK333 Mar 12 '13 at 17:22
  • Hmm in your GUI isn't there an option do do these ? I'll look further. – soyuka Mar 14 '13 at 11:49
0

Uninstall the old Mysql installed in the Pc and Run the web browser then the same error will come then refresh the page this will work

Fiham Zuher
  • 33
  • 2
  • 13