<legend id='6M3Nh'><style id='6M3Nh'><dir id='6M3Nh'><q id='6M3Nh'></q></dir></style></legend>
    <tfoot id='6M3Nh'></tfoot>
      <bdo id='6M3Nh'></bdo><ul id='6M3Nh'></ul>

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

    <small id='6M3Nh'></small><noframes id='6M3Nh'>

    1. MySQL:如何允许远程连接到 mysql

      时间:2023-08-20

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

            1. <tfoot id='U8huV'></tfoot>
              <legend id='U8huV'><style id='U8huV'><dir id='U8huV'><q id='U8huV'></q></dir></style></legend>

                <bdo id='U8huV'></bdo><ul id='U8huV'></ul>
                  <tbody id='U8huV'></tbody>
                本文介绍了MySQL:如何允许远程连接到 mysql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我在本地机器上安装了 MySQL Community Edition 5.5,我想允许远程连接,以便我可以从外部源连接.

                I have installed MySQL Community Edition 5.5 on my local machine and I want to allow remote connections so that I can connect from external source.

                我该怎么做?

                推荐答案

                MySQL 默认允许这样做.

                That is allowed by default on MySQL.

                默认禁用的是远程root 访问.如果要启用它,请在本地运行此 SQL 命令:

                What is disabled by default is remote root access. If you want to enable that, run this SQL command locally:

                 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
                 FLUSH PRIVILEGES;
                

                然后在您的 my.cnf 文件中找到以下行并注释掉,该文件通常位于 /etc/mysql/my.cnf 在 Unix/OSX 系统上.在某些情况下,文件的位置是/etc/mysql/mysql.conf.d/mysqld.cnf).

                And then find the following line and comment it out in your my.cnf file, which usually lives on /etc/mysql/my.cnf on Unix/OSX systems. In some cases the location for the file is /etc/mysql/mysql.conf.d/mysqld.cnf).

                如果是Windows系统,可以在MySQL安装目录下找到,一般是C:\Program Files\MySQL\MySQL Server 5.5\,文件名是my.ini.

                If it's a Windows system, you can find it in the MySQL installation directory, usually something like C:\Program Files\MySQL\MySQL Server 5.5\ and the filename will be my.ini.

                换行

                 bind-address = 127.0.0.1
                

                 #bind-address = 127.0.0.1
                

                并重新启动 MySQL 服务器(Unix/OSX,以及 Windows) 以使更改生效.

                And restart the MySQL server (Unix/OSX, and Windows) for the changes to take effect.

                这篇关于MySQL:如何允许远程连接到 mysql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:如何为 MySQL 中的多列指定唯一约束? 下一篇:获取每组分组SQL结果的最大值记录

                相关文章

                最新文章

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

                  1. <small id='UWKFN'></small><noframes id='UWKFN'>

                      <bdo id='UWKFN'></bdo><ul id='UWKFN'></ul>
                    <legend id='UWKFN'><style id='UWKFN'><dir id='UWKFN'><q id='UWKFN'></q></dir></style></legend>
                  2. <tfoot id='UWKFN'></tfoot>