MAMP MySQL无法连接:无效的设置. [英] MAMP MySQL Cannot connect: invalid settings.

查看:108
本文介绍了MAMP MySQL无法连接:无效的设置.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在MAMP灌输中遇到了一个问题,我没有改变它刚刚发生的任何事情.我可以很好地启动MAMP,它发出了绿灯,表示MySQL服务器已启动,我可以使用mysql命令从终端连接到它.但是,当我尝试打开phpMyAdmin时,出现此错误:

I've run into a issue in my MAMP instillation, I didn't change anything it just happened. I start MAMP perfectly fine and it gives the green light that the MySQL server is up and I can connect to it from the terminal using the mysql command. However when I try and open phpMyAdmin I get this error:

错误MySQL说:文档

Error MySQL said: Documentation

无法连接:无效的设置.phpMyAdmin尝试连接到MySQL服务器,服务器拒绝连接.您应该检查配置中的主机,用户名和密码,并确保它们与MySQL服务器管理员提供的信息相对应.

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.

我没有更改默认用户名和密码,随后尝试将它们重置为 root 和 root,这正是 phpMyAdmin 认为的.但是我仍然收到此错误.主机仍设置为localhost.我尝试卸载并重新安装MAMP无济于事.

I didn't change the default username and password and have subsequently tried to reset them to root and root which is what phpMyAdmin thinks they are. However I still get this error. The host is still set to localhost. I've tried uninstalling and reinstall MAMP to no avail.

推荐答案

似乎很多人最近都有此错误.

Seems like a lot of people where having this error recently.

MAMP将首选项窗格中的PHP切换更改为7.0.8,只需将其切换回5.6.10.

MAMP had changed the PHP toggle in the preferences pane to 7.0.8, just had to switch it back to 5.6.10.

这篇关于MAMP MySQL无法连接:无效的设置.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆