<bdo id='R2r7r'></bdo><ul id='R2r7r'></ul>
  • <tfoot id='R2r7r'></tfoot>

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

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

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

        #2002 - The server is not responding (or the local MySQL server#39;s socket is not correctly configured)(#2002 - 服务器没有响应(或者本地 MySQL 服务器的套接字配置不正确))
          <bdo id='oqxBy'></bdo><ul id='oqxBy'></ul>
          <i id='oqxBy'><tr id='oqxBy'><dt id='oqxBy'><q id='oqxBy'><span id='oqxBy'><b id='oqxBy'><form id='oqxBy'><ins id='oqxBy'></ins><ul id='oqxBy'></ul><sub id='oqxBy'></sub></form><legend id='oqxBy'></legend><bdo id='oqxBy'><pre id='oqxBy'><center id='oqxBy'></center></pre></bdo></b><th id='oqxBy'></th></span></q></dt></tr></i><div id='oqxBy'><tfoot id='oqxBy'></tfoot><dl id='oqxBy'><fieldset id='oqxBy'></fieldset></dl></div>

                <tbody id='oqxBy'></tbody>

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

                <legend id='oqxBy'><style id='oqxBy'><dir id='oqxBy'><q id='oqxBy'></q></dir></style></legend>

                • <tfoot id='oqxBy'></tfoot>
                • 本文介绍了#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)并改变socket地址.也许你的 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 服务器的套接字配置不正确)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                • <small id='EcpjR'></small><noframes id='EcpjR'>

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

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