• <tfoot id='Bg4Hj'></tfoot>
  • <small id='Bg4Hj'></small><noframes id='Bg4Hj'>

        <i id='Bg4Hj'><tr id='Bg4Hj'><dt id='Bg4Hj'><q id='Bg4Hj'><span id='Bg4Hj'><b id='Bg4Hj'><form id='Bg4Hj'><ins id='Bg4Hj'></ins><ul id='Bg4Hj'></ul><sub id='Bg4Hj'></sub></form><legend id='Bg4Hj'></legend><bdo id='Bg4Hj'><pre id='Bg4Hj'><center id='Bg4Hj'></center></pre></bdo></b><th id='Bg4Hj'></th></span></q></dt></tr></i><div id='Bg4Hj'><tfoot id='Bg4Hj'></tfoot><dl id='Bg4Hj'><fieldset id='Bg4Hj'></fieldset></dl></div>
          <bdo id='Bg4Hj'></bdo><ul id='Bg4Hj'></ul>
        <legend id='Bg4Hj'><style id='Bg4Hj'><dir id='Bg4Hj'><q id='Bg4Hj'></q></dir></style></legend>
      1. #2002 - 服务器没有响应(或者本地 MySQL 服务器的套接字没有正确配置)

        时间:2023-10-11
        <tfoot id='sbZG2'></tfoot>

          <bdo id='sbZG2'></bdo><ul id='sbZG2'></ul>

              • <i id='sbZG2'><tr id='sbZG2'><dt id='sbZG2'><q id='sbZG2'><span id='sbZG2'><b id='sbZG2'><form id='sbZG2'><ins id='sbZG2'></ins><ul id='sbZG2'></ul><sub id='sbZG2'></sub></form><legend id='sbZG2'></legend><bdo id='sbZG2'><pre id='sbZG2'><center id='sbZG2'></center></pre></bdo></b><th id='sbZG2'></th></span></q></dt></tr></i><div id='sbZG2'><tfoot id='sbZG2'></tfoot><dl id='sbZG2'><fieldset id='sbZG2'></fieldset></dl></div>

              • <legend id='sbZG2'><style id='sbZG2'><dir id='sbZG2'><q id='sbZG2'></q></dir></style></legend>
                1. <small id='sbZG2'></small><noframes id='sbZG2'>

                    <tbody id='sbZG2'></tbody>
                  本文介绍了#2002 - 服务器没有响应(或者本地 MySQL 服务器的套接字没有正确配置)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我无法访问 PHPMyAdmin.当我想去那里时,我收到了这个错误:

                  I can't access to PHPMyAdmin. when i want to go there, i got this error:

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

                  #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)

                  我用谷歌搜索了这个错误,但没有清除.

                  I googled this error but it don't clear.

                  我试着知道这个代码打开了哪个端口:

                  I try to know that which port is open by this code :

                  pgrep mysql
                  

                  mysql 运行时有两个端口是打开的.

                  two ports are open when mysql is running.

                  我想在我的本地主机中访问 PHPMyAdmin.我正在使用 Ubuntu 操作系统

                  I want to access to PHPMyAdmin in my localhost. I am using Ubuntu OS

                  推荐答案

                  在 Ubuntu 中,默认情况下 mysql 不侦听 TCP/IP 连接.它只使用本地套接字.

                  In Ubuntu, by default mysql is not listening to TCP/IP connections. It just uses a local socket.

                  当前本地套接字在 /etc/mysql/my.cnf 中配置.如果你打开这个文件,你应该会发现类似于:

                  The current local socket is configured in /etc/mysql/my.cnf . If you open this file, you should find something similar to:

                  [client]
                  port            = 3306
                  socket          = /var/run/mysqld/mysqld.sock
                  

                  您应该做的只是打开PHPMyAdmin 的配置文件(config.inc.php)并更改套接字地址.也许您的 PHPMyAdmin 上没有本地套接字配置,或者可能不同.该文件应包含如下一行(当然,请根据您在 my.cnf 上找到的地址调整地址):

                  What you should do is just to open PHPMyAdmin's config file (config.inc.php) and change the socket address. Maybe there's no local socket configuration on your PHPMyAdmin, or maybe it is different. This file should contain a line like (of course, adapt the address to what you found on my.cnf):

                  $cfg['Servers'][$i]['socket'] = '/var/run/mysqld/mysqld.sock';
                  

                  这篇关于#2002 - 服务器没有响应(或者本地 MySQL 服务器的套接字没有正确配置)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:用数组中的值替换所有出现的字符串 下一篇:由于 PHP 版本,Apache 中的 PHPMyAdmin 500 内部服务器错误

                  相关文章

                    • <bdo id='gpUoQ'></bdo><ul id='gpUoQ'></ul>

                  1. <tfoot id='gpUoQ'></tfoot>
                  2. <legend id='gpUoQ'><style id='gpUoQ'><dir id='gpUoQ'><q id='gpUoQ'></q></dir></style></legend>
                    <i id='gpUoQ'><tr id='gpUoQ'><dt id='gpUoQ'><q id='gpUoQ'><span id='gpUoQ'><b id='gpUoQ'><form id='gpUoQ'><ins id='gpUoQ'></ins><ul id='gpUoQ'></ul><sub id='gpUoQ'></sub></form><legend id='gpUoQ'></legend><bdo id='gpUoQ'><pre id='gpUoQ'><center id='gpUoQ'></center></pre></bdo></b><th id='gpUoQ'></th></span></q></dt></tr></i><div id='gpUoQ'><tfoot id='gpUoQ'></tfoot><dl id='gpUoQ'><fieldset id='gpUoQ'></fieldset></dl></div>

                    <small id='gpUoQ'></small><noframes id='gpUoQ'>