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

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

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

        如何在亚马逊 RDS 上“加载数据文件"?

        时间:2023-06-24
          <bdo id='JEcXz'></bdo><ul id='JEcXz'></ul>

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

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

                    <tbody id='JEcXz'></tbody>
                  <tfoot id='JEcXz'></tfoot>
                • 本文介绍了如何在亚马逊 RDS 上“加载数据文件"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  不确定这是否是一个更适合 serverfault 的问题,但我最近一直在使用 amazon RDS,并且无法将文件"权限授予我的网络主机 mysql 用户.

                  not sure if this is a question better suited for serverfault but I've been messing with amazon RDS lately and was having trouble getting 'file' privileges to my web host mysql user.

                  我假设一个简单的:

                  grant file on *.* to 'webuser@'%';
                  

                  可以,但不行,而且我似乎也不能用我的root"用户来做.是什么赋予了?我们使用加载数据的原因是因为它一次执行数千次插入的速度非常快.

                  would work but it does not and I can't seem to do it with my 'root' user as well. What gives? The reason we use load data is because it is super super fast for doing thousands of inserts at once.

                  有谁知道如何解决这个问题,还是我需要另辟蹊径?

                  anyone know how to remedy this or do I need to find a different way?

                  此页面,http://docs.amazonwebservices.com/AmazonRDS/latest/DeveloperGuide/index.html?Concepts.DBInstance.html 似乎表明我需要找到一种不同的方法来解决这个问题.

                  This page, http://docs.amazonwebservices.com/AmazonRDS/latest/DeveloperGuide/index.html?Concepts.DBInstance.html seems to suggest that I need to find a different way around this.

                  帮助?

                  更新我不想导入数据库——我只想使用文件加载选项一次插入几十万行.

                  UPDATE I'm not trying to import a database -- I just want to use the file load option to insert several hundred-thousand rows at a time.

                  经过深入研究后,我们得到了:

                  after digging around this is what we have:

                   mysql> grant file on *.* to 'devuser'@'%';
                   ERROR 1045 (28000): Access denied for user 'root'@'%' (using password: YES)
                  
                  
                   mysql> select User, File_priv, Grant_priv, Super_priv from mysql.user;
                   +----------+-----------+------------+------------+
                   | User     | File_priv | Grant_priv | Super_priv |
                   +----------+-----------+------------+------------+
                   | rdsadmin | Y         | Y          | Y          |
                   | root     | N         | Y          | N          |
                   | devuser  | N         | N          | N          |
                   +----------+-----------+------------+------------+
                  

                  推荐答案

                  您需要使用 LOAD DATA LOCAL INFILE 因为该文件不在 MySQL 服务器上,而是在您正在运行的机器上来自的命令.

                  You need to use LOAD DATA LOCAL INFILE as the file is not on the MySQL server, but is on the machine you are running the command from.

                  根据下面的评论,您可能还需要包含标志:

                  As per comment below you may also need to include the flag:

                  --local-infile=1
                  

                  这篇关于如何在亚马逊 RDS 上“加载数据文件"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:拒绝访问;您需要(至少其中之一)此操作的 SUPER 权限 下一篇:配置 GlassFish JDBC 连接池以处理 Amazon RDS 多可用区故障转移

                  相关文章

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

                      <bdo id='5jTGi'></bdo><ul id='5jTGi'></ul>

                    <small id='5jTGi'></small><noframes id='5jTGi'>

                      <legend id='5jTGi'><style id='5jTGi'><dir id='5jTGi'><q id='5jTGi'></q></dir></style></legend><tfoot id='5jTGi'></tfoot>