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

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

      <legend id='Ulify'><style id='Ulify'><dir id='Ulify'><q id='Ulify'></q></dir></style></legend>
      • <bdo id='Ulify'></bdo><ul id='Ulify'></ul>

        无法通过socket'/run/mysqld/mysqld.sock'连接本地

        时间:2023-08-21
        1. <tfoot id='wEY0Q'></tfoot>
            <tbody id='wEY0Q'></tbody>

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

            • <bdo id='wEY0Q'></bdo><ul id='wEY0Q'></ul>
              • <i id='wEY0Q'><tr id='wEY0Q'><dt id='wEY0Q'><q id='wEY0Q'><span id='wEY0Q'><b id='wEY0Q'><form id='wEY0Q'><ins id='wEY0Q'></ins><ul id='wEY0Q'></ul><sub id='wEY0Q'></sub></form><legend id='wEY0Q'></legend><bdo id='wEY0Q'><pre id='wEY0Q'><center id='wEY0Q'></center></pre></bdo></b><th id='wEY0Q'></th></span></q></dt></tr></i><div id='wEY0Q'><tfoot id='wEY0Q'></tfoot><dl id='wEY0Q'><fieldset id='wEY0Q'></fieldset></dl></div>
              • <legend id='wEY0Q'><style id='wEY0Q'><dir id='wEY0Q'><q id='wEY0Q'></q></dir></style></legend>
                  本文介绍了无法通过socket'/run/mysqld/mysqld.sock'连接本地MySql服务器(2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我使用的是 Arch Linux.我已经通过 aurget 安装了 mysql.然后,当我尝试创建一些数据库时,我遇到了错误:Can't connect to local MySql server through socket '/run/mysqld/mysqld.sock' (2)" 应该怎么做我这样做是为了解决我的问题?

                  I'm using Arch Linux. I've installed mysql by aurget. Then when I'm trying to make some data base I face the error: "Can't connect to local MySql server through socket '/run/mysqld/mysqld.sock' (2)" What should I do to resolve my problem?

                  推荐答案

                  在 Archlinux 中,服务在安装后未启用或自动启动.根据ArchWiki,安装软件包后,您需要运行(以root身份):

                  In Archlinux, services are not enabled or started automatically after installation. According to ArchWiki, after installing the package you need to run (as root):

                  mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
                  systemctl enable mysql.service
                  systemctl start mysql.service
                  

                  这篇关于无法通过socket'/run/mysqld/mysqld.sock'连接本地MySql服务器(2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:为什么运行docker容器后mysql数据所有权改为syste 下一篇:一台服务器上的 MySQL 比另一台服务器慢 10 倍

                  相关文章

                  最新文章

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

                  1. <tfoot id='L51Lq'></tfoot>

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

                  2. <small id='L51Lq'></small><noframes id='L51Lq'>