phpmyadmin 2002错误 [英] phpmyadmin 2002 error

查看:69
本文介绍了phpmyadmin 2002错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误消息:

#2002-服务器没有响应(或本地MySQL服务器的套接字未正确配置)

我使用Ubuntu 11.10 ...和Xampp

I use Ubuntu 11.10... and Xampp

我用过google,并且看到了此解决方案:

I used the google, and I saw this solution:

$ cfg ['Servers'] [$ i] ['socket'] ='/var/run/mysql/mysql.sock';或者 $ cfg ['Servers'] [$ i] ['connect_type'] ='tcp';

$cfg['Servers'][$i]['socket'] = '/var/run/mysql/mysql.sock'; or $cfg['Servers'][$i]['connect_type'] = 'tcp';

但是config.inc.php文件中的这些行不能解决问题.

But these lines in the config.inc.php file, don't fix the problem.

有人可以帮助我吗?我还能做什么?

Can somebody help me? What else can I do?

我想学习php :)但是有很多问题……也许在Windows 7上没有这个问题吗?

I want to learn php :) But there are a lot of problem... Maybe on Windows 7, there isn't this problem?

推荐答案

因此,正如您所知,您刚刚使用ubuntu开始使用php,我的建议是从头开始,这是一个小问题:

So as you are telling that your are just started with php using ubuntu my advise is to start from scratch, here it's a small guite:

  • 安装所有您需要的东西:

  • Install all you will be needing:

sudo apt-get install apache2 php5 mysql-server phpmyadmin

sudo apt-get install apache2 php5 mysql-server phpmyadmin

安装完成后,您将使用以下目录

Once all it's installed you will be using the following directories

/var/www-服务器存储页面的位置

/var/www -- here its where your server stores your pages

/var/log/apache2/-这是存储日志的位置(apache很有用 失败,请检查该目录中的error.log文件)

/var/log/apache2/ -- here it's where logs are stored (quite helpful when apache fails,check out the error.log file in that directory)

/etc/apache2-apache配置位于此处

/etc/apache2 -- apache configuration lives here

/etc/php5/cli-这是php5控制台实时配置的地方(当您使用〜$ php5 test.php时,从此处读取配置)

/etc/php5/cli -- this is where configuration for php5 console live (when you use ~$ php5 test.php the configuration is read from here)

/etc/php5/apache2,这是php5服务器实时配置的位置(当您从类似 http://的浏览器进行访问时本地主机/test.php )

/etc/php5/apache2 this is where configuration for php5 server live (when you access from a browser like http://localhost/test.php )

开箱即用的配置文件不需要修改(也许需要更多修改才能使用)

The configuration files out of the box dont need to be modified (maybe for more advance uses you will need to modify them)

要在此处卸载xamp,可能会有很多麻烦: http://www .apachefriends.org/f/viewtopic.php?p = 135389 .首先删除xamp,然后按照我的指示进行操作

To uninstall xamp here its a thread might be helful: http://www.apachefriends.org/f/viewtopic.php?p=135389 . First remove xamp and then follow my instructions

这篇关于phpmyadmin 2002错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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