`
aiou
  • 浏览: 194781 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

#2002 - 服务器没有响应 (or the local MySQL server’s socket is not correctly configured)

    博客分类:
  • php
阅读更多
下面涉及到的指令都是在Ubuntu下以root用户执行的,如果你不是在用root,那么,请自行加上sudo指令

1、既然标题都了是deb方式,那么肯定是依靠互联网软件库的啦:

sudo apt-get install phpmyadmin

2、安装完成之后,系统内会增加这么几个目录:

/etc/phpmyadmin

/usr/share/phpmyadmin

3、按理说,这个时候在浏览器(比如firefox)里面浏览http://localhost/phpmyadmin,看到下列界面后用管理员身份登录(比如用账号root登录)就可以正常使用了的:
Ubuntu下安装phpmyadmin过程(deb包)[图文]

4、但是,该死的,我在登录的时候就发现下面的错误:

#2002 - 服务器没有响应 (or the local MySQL server’s socket is not correctly configured)

5、着急啊,心里面知道肯定是哪个配置文件的某个参数配置出错了:

编辑/etc/phpmyadmin/config.inc.php,原来有这样一行的──

$cfg[’Servers’][$i][’host’] = ‘localhost’;

请修改为这样──

$cfg[’Servers’][$i][’host’] = ‘127.0.0.1′;

可以发现,这个值和mysql的配置文件/etc/mysql/my.cnf中的下列行息息相关──

bind-address = 127.0.0.1
分享到:
评论

相关推荐

    oracle报错大全(珍藏版)

    #### ORA-00103: Shared Server Not Configured Correctly 共享服务器配置不正确。这可能是由于配置错误或服务管理器的问题。 #### ORA-00104: Full Divisional Lockout Occurred 发生了完全部门锁定。这可能是由于...

    k7 SRIO参考例程

    - Some Logical Layer CARs are not being set correctly in the core. - Version fixed : v4.4 - CR#458414 / AR#30054 - The following Logical Layer CARs are not being set correctly in the core: - ...

    Oracle 错误大全

    ##### ORA-00063: LOG_FILES Not Set Correctly - **描述**:LOG_FILES设置不正确。 - **解决方法**: - 确认LOG_FILES的值是否符合需求。 - 检查参数设置是否正确。 ##### ORA-00064: Unable to Open File O/S ...

    Docker - Clustering Payara Server in Docker

    The `payara/server-das` image is used to start the domain administration server (DAS), which manages the cluster configuration and provides administrative services. #### Payara Server Instance Docker...

    Senfore_DragDrop_v4.1

    Although the file names are received correctly by TDropFileTarget, WinZip doesn't extract the files and the files thus can't be copied/moved. This is caused by a quirk in WinZip; Apparently WinZip ...

    win 3.11 for workgroup tcpip支持

    The Microsoft clients can be configured to use a UB name server by adding the SYSTEM.INI parameter RefreshOpCode under the [NBT] section. Set its value to 9 to interoperate with UB name servers. ...

    The application is not correctly signed(解决方案).md

    The application is not correctly signed(解决方案).md

    apache-maven-3.3.9.rar

    5) Run "mvn --version" to verify that it is correctly installed. For complete documentation, see http://maven.apache.org/download.html#Installation Licensing --------- Please see the file ...

    Diskeeper 2008 v12.0.759.0

    Diskeeper 2008 HomeServer is the only defragmentation solution specifically designed for Windows Home Server operating system. Diskeeper HomeServer provides a snap-in to the new WHS console, ...

    解决:'RICHTX32.OCX' or one of its dependencise not correctly registered

    解决:'RICHTX32.OCX' or one of its dependencise not correctly registered. 运行下载后的EXE程序,补充系统中缺少的文件

    Bochs - The cross platform IA-32 (x86) emulator

    - Local APIC configure option --enable-apic is deprecated and should not be used anymore. The LAPIC option now automatically determined from other configure options. XAPIC functionality could be ...

    Component'MSADODC.OCX' or one of its dependencies nt correctly

    Component'MSADODC.OCX' or one of its dependencies nt correctly

    ramin 2.2 for xp

    The remote computer can be anywhere on the Internet or in your local network. You don't need a fast network connection. Even with a MODEM the screen update speed is an acceptable 5-10 screen updates...

    unigui0.83.5.820

    - 0000712: raise error if Form owner is not either TUniGUIApplication or TApplication - 0000609: TUniTimer: Attach to TUniScreenMask - 0000703: TUniDBLookUpxxx bug when datasource and datafield are ...

    Google C++ Style Guide_英文版.pdf

    - **Pre-increment and Pre-decrement:** Prefer pre-increment and pre-decrement over post-increment and post-decrement when the value is not needed after the operation. - **Use of const:** Use const for...

    Turbo C++ 3.0[DISK]

    installation will not work correctly if you do not use the same media type for the backup disks. To start the installation, change your current drive to the one that has the install program on ...

    Turbo C++ 3.00[DISK]

    installation will not work correctly if you do not use the same media type for the backup disks. To start the installation, change your current drive to the one that has the install program on ...

    Flask Web Development.pdf 最新 原版

    **Understand Flask’s Basic Application Structure:** The book starts by introducing the fundamental structure of a Flask application, including the initialization process, defining routes and view ...

    linux下tomcat6.0+oracle10G安装文档

    在安装配置过程中可能会遇到一些问题,例如“启动Tomcat时报错:The BASEDIR environment variable is not defined correctly”等。此类问题通常表明环境变量配置不正确或缺失。解决方法是检查`catalina.sh`中的环境...

    a project model for the FreeBSD Project.7z

    Ports is the collection of meta-data that is needed to make software packages build correctly on FreeBSD. An example of a port is the port for the web-browser Mozilla. It contains information about ...

Global site tag (gtag.js) - Google Analytics