Cannot connect to phpMyAdmin on MAMP

≡放荡痞女 提交于 2019-12-10 09:56:42

问题


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.



来源:https://stackoverflow.com/questions/38353489/cannot-connect-to-phpmyadmin-on-mamp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!