【发布时间】:2011-09-03 12:27:13
【问题描述】:
所以只有当我转到本地 PhpMyAdmin 窗口时,我才会收到 #2002 消息。 我搜索了网络,发现了一个终端命令来检查 Mysql 是否会首先运行,并且确实如此。
运行/Applications/MAMP/Library/bin/mysql -u root -p
给我
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.5.9 Source distribution
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
我认为这看起来不错,所以错误一定与此没有太大关系。
我读到有 config.inc.php 文件,您将值 'localhost' 替换为 '127.0.0.1' 但这并没有改变这种情况。
然后我去 MYSQL 论坛寻找建议检查 my.cnf 文件以检查某些值。但我在任何地方都找不到。 MAMP中是否有其他文件具有相同功能?
【问题讨论】:
-
之前运行正常还是安装后出现此错误?如果是这样,只需重新安装整个东西。
-
我实际上已经卸载并重新安装了 MAMP,但仍然给我同样的 2002 错误。
-
您使用的是哪个操作系统?我会向我们推荐 xampp。
-
我正在运行 Mac OSX。问题来自于 drupal 站点。由于某种原因,Xampp 看不到我的 drupal 安装,这在过去本身就是一个问题,我使用 MAMP 解决了这个问题
-
不知道这个serbiancafe.wordpress.com/2008/11/26/…会不会有帮助。
标签: mysql phpmyadmin