• <tfoot id='m5jes'></tfoot>

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

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

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

        授予从任何 IP 地址远程访问 MySQL 数据库的权限

        时间:2023-08-19

            <tbody id='15Jn2'></tbody>

            1. <tfoot id='15Jn2'></tfoot>
            2. <small id='15Jn2'></small><noframes id='15Jn2'>

                <legend id='15Jn2'><style id='15Jn2'><dir id='15Jn2'><q id='15Jn2'></q></dir></style></legend>
                  <bdo id='15Jn2'></bdo><ul id='15Jn2'></ul>
                  <i id='15Jn2'><tr id='15Jn2'><dt id='15Jn2'><q id='15Jn2'><span id='15Jn2'><b id='15Jn2'><form id='15Jn2'><ins id='15Jn2'></ins><ul id='15Jn2'></ul><sub id='15Jn2'></sub></form><legend id='15Jn2'></legend><bdo id='15Jn2'><pre id='15Jn2'><center id='15Jn2'></center></pre></bdo></b><th id='15Jn2'></th></span></q></dt></tr></i><div id='15Jn2'><tfoot id='15Jn2'></tfoot><dl id='15Jn2'><fieldset id='15Jn2'></fieldset></dl></div>
                  本文介绍了授予从任何 IP 地址远程访问 MySQL 数据库的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我知道这个命令:

                  GRANT ALL PRIVILEGES
                  ON database.*
                  TO 'user'@'yourremotehost'
                  IDENTIFIED BY 'newpassword';
                  

                  但是它只允许我授予一个特定的 IP 地址来访问这个远程 MySQL 数据库.如果我想要它以便任何远程主机都可以访问这个 MySQL 数据库怎么办?我怎么做?基本上,我将这个数据库公开,以便每个人都可以访问它.

                  But then it only allows me to grant a particular IP address to access this remote MySQL database. What if I want it so that any remote host can access this MySQL database? How do I do that? Basically I am making this database public so everyone can access it.

                  推荐答案

                  TO 'user'@'%'
                  

                  % 是通配符 - 如果需要,您还可以执行 '%.domain.com''%.123.123.123' 以及类似的操作.

                  % is a wildcard - you can also do '%.domain.com' or '%.123.123.123' and things like that if you need.

                  这篇关于授予从任何 IP 地址远程访问 MySQL 数据库的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:MySQL:无法创建表(错误号:150) 下一篇:MySQL order by before group by

                  相关文章

                  最新文章

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

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