Cannot connect to phpMyAdmin on MAMP

2019-05-22 20:46发布

问题:

Im getting this error message:

MySQL said:

Cannot connect: invalid settings. 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.

The user and pass are the default ones - both 'root'. I haven't set them anywhere. Ive tried various answers on here but nothing is working

回答1:

In Preferences pane of MAMP switch back from PHP 7 to 5.6.10 and it should work again.



回答2:

I was having the same problem, tried all these suggestions but nothing worked. So I did the only thing I could think off, restarted the machine...started MAMP, mysql server was off, so I just hit start server and it worked.