<tfoot id='tUdGS'></tfoot>

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

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

      2. AWS Aurora:MySQL 服务器使用 --read-only 选项运行,因此无法执行此语句

        时间:2023-06-24

          <bdo id='q8mpx'></bdo><ul id='q8mpx'></ul>
          <tfoot id='q8mpx'></tfoot>
            <tbody id='q8mpx'></tbody>

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

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

                  <legend id='q8mpx'><style id='q8mpx'><dir id='q8mpx'><q id='q8mpx'></q></dir></style></legend>
                1. 本文介绍了AWS Aurora:MySQL 服务器使用 --read-only 选项运行,因此无法执行此语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在 AWS 中的 Aurora 数据库实例上执行 GRANT 语句时收到此错误:

                  I am getting this error when executing a GRANT statement on my Aurora DB instance in AWS:

                  MySQL 服务器使用 --read-only 选项运行,因此无法执行此语句

                  The MySQL server is running with the --read-only option so it cannot execute this statement

                  我的用户不是只读的,为什么会发生这种情况?

                  My user is not read-only though, so why is this happening?

                  推荐答案

                  结果证明这是一个愚蠢的错误,但还是发布了,以防其他人遇到问题:

                  It turned out to be a silly mistake, but posting it anyway in case anyone else has the problem:

                  我错误地访问了副本实例 - 我复制了副本的端点,它显然是只读的.因此,如果您遇到此问题,请验证您是连接到主实例还是最好的数据库集群端点.

                  I was accessing the replica instance by mistake - I had copied the endpoint for the replica, and it is read-only apparently. So if you have this problem, verify that you are connecting to the Primary Instance or best of all the DB Cluster endpoint.

                  根据@Justin 的回答,我们绝对应该使用数据库集群:

                  According to @Justin's answer we definitely should use DB Cluster:

                  您需要连接到集群,而不是实例.这是因为实例似乎要轮流成为读者和作者.

                  You need to connect to the cluster, rather than an instance. This is because instances seem to take a turn to be the readers and writers.

                  这篇关于AWS Aurora:MySQL 服务器使用 --read-only 选项运行,因此无法执行此语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Amazon RDS Aurora 与 RDS MySQL 与 EC2 上的 MySQL? 下一篇:除非指定了主键,否则防止从表中删除 *

                  相关文章

                  • <bdo id='fdURT'></bdo><ul id='fdURT'></ul>

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

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

                      <tfoot id='fdURT'></tfoot>
                    2. <small id='fdURT'></small><noframes id='fdURT'>