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

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

        <tfoot id='n5zxH'></tfoot>

        Ansible 不会将权限从 USAGE 更改为 GRANT ALL

        时间:2023-08-21

      2. <legend id='WAyjL'><style id='WAyjL'><dir id='WAyjL'><q id='WAyjL'></q></dir></style></legend>

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

              <tbody id='WAyjL'></tbody>

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

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

                  本文介绍了Ansible 不会将权限从 USAGE 更改为 GRANT ALL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我使用以下 ansible 任务将所有权限授予所有数据库.

                  I used following ansible task to GRANT ALL privilege to all databases.

                  - name: create new user {{ db_user }} with all privilege
                    mysql_user: name="{{ db_user }}"
                                password="{{ db_password }}"
                                append_privs=yes
                                priv=*.*:ALL,GRANT state=present
                  

                  但是当我在 mysql(mariadb) 上运行 show grants for 'dbuser'@'XX.XX.XX.XX'; 它显示我跟随.

                  but when I run show grants for 'dbuser'@'XX.XX.XX.XX'; on mysql(mariadb) it shows me following.

                  GRANT USAGE ON *.* TO 'dbuser'@'XX.XX.XX.XX' IDENTIFIED BY PASSWORD '*A7AD1ECBCD787B8CABE6A58AEA652A8B3CF5035BA82'
                  

                  如何使用 ansible 将此 USAGE 更改为 GRANT ALL?

                  How to change this USAGE to GRANT ALL using ansible?

                  推荐答案

                  默认情况下 mysql_user 使用 localhost 主机部分创建用户.
                  因此,您的任务使用 GRANT ALL 创建了 dbuser@localhost.
                  如果您需要其他主机,请为模块设置 host=XX.XX.XX.XX 参数.
                  从 2.1 开始修改权限时也有 host_all=yes 可用.

                  By default mysql_user creates users with localhost host portion.
                  So your task created dbuser@localhost with GRANT ALL.
                  If you need another host, set host=XX.XX.XX.XX parameter for the module.
                  Also there is host_all=yes available since 2.1 when modifying permissions.

                  这篇关于Ansible 不会将权限从 USAGE 更改为 GRANT ALL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何在ansible中为不同的主机使用另一个任务中的 下一篇:Unitils 和 DBMaintainer - 如何让它们与多个用户/模式

                  相关文章

                  最新文章

                  <tfoot id='UoOBr'></tfoot>

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

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

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