php 我无法使用 mamp 访问 phpmyadmin

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8656139/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 05:11:38  来源:igfitidea点击:

I can't access phpmyadmin with mamp

phpphpmyadminosx-snow-leopardmamp

提问by swydell

I have MAMP installed on my Mac Book Pro OS 10.6.8. The open start page on my MAMP is grayed out now. The Apache server button is green. The MySQL server button is red.

我在 Mac Book Pro OS 10.6.8 上安装了 MAMP。我的 MAMP 上打开的起始页现在是灰色的。Apache 服务器按钮为绿色。MySQL 服务器按钮为红色。

At one time I could access phpmyadmin. I have my php files in htdocs folder of MAMP that I can access in localhost:8888/filename.php. I want to create another database and table but I can't access phpmyadmin. I even downloaded phpmyadmin to my desktop but I don't know how to open it. Any suggestions

有一次我可以访问phpmyadmin。我在 MAMP 的 htdocs 文件夹中有我的 php 文件,我可以在 localhost:8888/filename.php 中访问。我想创建另一个数据库和表,但我无法访问 phpmyadmin。我什至将 phpmyadmin 下载到我的桌​​面,但我不知道如何打开它。有什么建议

采纳答案by Alex Coplan

I often get MAMP giving me the red light for MySQL.

我经常得到 MAMP 给我的 MySQL 红灯。

Every time I fixed it by quitting every instance of the mysqldprocess.

每次我通过退出mysqld进程的每个实例来修复它。

Check in Activity Monitor for multiple instances of that process running - if there are, then that is your problem. Quit them all, and restart MAMP.

检查活动监视器是否有该进程正在运行的多个实例 - 如果有,那就是您的问题。全部退出,然后重新启动 MAMP。

Activity monitor can be found in Applications > Utilities > Activity Monitor.app. - Search for mysqldin the search box in the top right of activity monitor, and if there are multiple instances running, quit them all.

活动监视器可以在Applications > Utilities > Activity Monitor.app. -mysqld在活动监视器右上角的搜索框中搜索,如果有多个实例正在运行,则将它们全部退出。

If not, try quitting the process anyway and restart MAMP.

如果没有,请尝试退出该过程并重新启动 MAMP。

Update:Easier way to perform this:

更新:执行此操作的更简单方法:

$ killall mysqld

From terminal.

从终端。

回答by brentlightsey

On the latest version of MAMP (4.1.1), the default option in the settings was set to "PHP 7.1.1". After I set the default option to 7.0.15, the PHPmyAdmin tools were no longer grayed and worked fine.

在最新版本的 MAMP (4.1.1) 上,设置中的默认选项设置为“PHP 7.1.1”。在我将默认选项设置为 7.0.15 后,PHPmyAdmin 工具不再变灰并且工作正常。

Screenshot of PHP tab of MAMP preferences

MAMP 首选项的 PHP 选项卡屏幕截图

回答by user3349250

I had the same or similar issue where PHPMyAdmin was greyed out after installing MAMP 3.5. I checked the PHP version and it was set to 5.2, so I just bumped it up to 5.6 and the my PHPmyAdmin icon became active.

在安装 MAMP 3.5 后,我遇到了相同或类似的问题,即 PHPMyAdmin 变灰。我检查了 PHP 版本,它被设置为 5.2,所以我只是将它提高到 5.6 并且我的 PHPmyAdmin 图标变为活动状态。

Hope that helps.

希望有帮助。

回答by Fisu

I encountered this issue after migrating my MAMP installation from one machine to another. The problem occurred due to permission issues on the MAMP directory.

在将我的 MAMP 安装从一台机器迁移到另一台机器后,我遇到了这个问题。该问题是由于 MAMP 目录的权限问题引起的。

To grant permission:

授予权限:

  1. Locate the MAMPdirectory in Finder
  2. Ctrl-click > Get Info
  3. Under Sharing & Permissions, if your username is not visible, click +and select your username
  4. Ensure Privilegeshows Read & Write
  5. Click Apply to enclosed itemsfrom the settings icon
  1. Finder 中找到MAMP目录
  2. 按住 Ctrl 键单击 >获取信息
  3. 共享和权限下,如果您的用户名不可见,请单击+并选择您的用户名
  4. 确保权限显示读取和写入
  5. 单击设置图标中的应用于封闭项目

回答by Jon

I had to go to the Mamp website

我必须去Mamp 网站

and download the latest version then reinstall it to get things working again. This had the advantage of also giving me the cloud options and upgrading MySql but But you do have to remember your default directory and preferred ports if you want to use the ones that you had before. I hope this helps?

并下载最新版本,然后重新安装它以使一切恢复正常。这样做的好处是还为我提供了云选项和升级 MySql,但是如果您想使用以前拥有的目录和首选端口,则必须记住您的默认目录和首选端口。我希望这有帮助?

回答by ozbassplayer

The only way I was able to fix this was to reinstall MAMP Pro.

我能够解决此问题的唯一方法是重新安装 MAMP Pro。