问题标签 [amazon-aurora]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
mysql - Amazon Aurora RDS 无法使用导入文件。Mysql Workbench 中的用户访问被拒绝
我已经创建了一个 amazon aurora rds 数据库实例,并以主用户成功连接到 Mysql Workbench。查询也工作正常,但我没有执行文件导入操作所需的所有权限。我已经阅读了许多与此相关的文档和线程,但无法将权限授予主用户。一步一步的指导将不胜感激。谢谢你。
mysql - SSL connection error when trying to connect to mysql Aurora via the mysql CLI
I will preface by saying I can connect to the DB instance when I'm not trying to go over SSL.
I am following this guide here
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Connect.html
I have ensured the db instance is public facing.
The security group of the VPC has the following rules:
Where the security_group_name is the security group for my EC2 cluster.
I am using the cluser endpoint of my aurora cluster. And I've removed the port. I installed mysql on my machine using homebrew. This is the command I am trying from my local machine (macbook):
Where rds-ssl-ca-cert.pem is the file I downloaded from here:
I get the error:
I have tried creating a new instance, rebooting etc and no joy. Does my security group need some kind of https rule?
Edit:
Further clue. When I run mysql --ssl locally it doesn't error. But when I do mysql show_variables, it says SSL false and the have_ssl and have_open_ssl variables don't exist. Could this be the problem? I installed the local mysql via homebrew package manager for mac.
New edit:
I re-installed mysql (previously from brew) and now direct from oracle and when I try to connect it gives a different error - SSL connection error: ASN: bad other signature confirmation
amazon-web-services - 将应用程序连接到 Amazon Aurora RDS 实例
我正在阅读 AWS RDS 文档,发现在将应用程序连接到 Aurora 集群时可以使用多种端点选项。您可以通过集群终端节点、主终端节点或副本终端节点进行连接。
我的问题是,如果我使用集群端点,我是否能够利用读取扩展,还是只会命中主实例进行读取?
如果这不起作用,我想另一种方法是在读取时随机选择一个只读副本,或者在副本前面有一个负载均衡器,然后使用它的地址进行读取。
如果集群端点不能扩展读取工作负载,请告知正确的方法是什么。我正在使用一个 ORM 框架来控制与 Aurora 数据库集群的数据访问交互。
amazon-web-services - AWS Aurora ALTER TABLE 不工作
我正在尝试使用以下方法将新列添加到重约 20GB 的表中:
处理大约一小时后,ALTER 命令失败并返回以下错误而不添加列:
知道为什么会这样吗?
amazon-aurora - Aurora 副本滞后远高于报道
我们的应用程序使用 Amazon RDS Aurora 的读取器和写入器实例。AWS 仪表板显示副本延迟始终约为 20 毫秒。但是,我们在 master 上提交后超过 90 毫秒在阅读器上看到旧结果,在某些情况下至少长达 170 毫秒。
在执行 CRUD 操作时,我们的应用程序提交数据,然后向客户端发出 HTTP 重定向以加载新数据。重定向的网络周转时间记录在客户端上,通常至少为 90 毫秒。我们在应用程序服务器上记录提交时间和读取时间,并看到大约 170 毫秒的差异。旧数据不断出现。
在 Aurora 之前,我们有一个标准的 MySQL 复制设置,但功能明显不那么强大,而且从未遇到过这个问题。
将应用程序更改为从同一个 Aurora 实例读取和写入可以解决问题,但我认为 Aurora 使用共享存储进行复制。到底是怎么回事?这可能是 Aurora 的查询缓存的问题吗?报告的副本滞后是否不准确?
任何帮助,将不胜感激。
谢谢,
c# - 有没有办法直接从 C# 中的 Amazon S3 制表符分隔文件批量插入 Amazon Aurora RDS?
我目前正在使用 Amazon Redshift 存储每天推送到 Amazon S3 中的存储桶的 50 - 100 GB(即数百万行)制表符分隔文件的聚合数据。
Redshift 通过提供一个copy
可以直接针对 S3 存储桶的命令来批量加载数据,从而简化了这一过程。
我想将 Amazon Aurora RDS 用于同样的目的。目前关于 Aurora 的文档最多。有没有办法直接从 S3 批量加载到 Aurora?
据我所知,MySqlLOAD DATA INFILE
需要磁盘上文件的路径,我想我可以通过将 tsv 下载到 AWS 实例并从那里运行命令来解决这个问题,但这并不理想。
我还尝试将 tsv 读入内存并构造多个insert
语句。这显然是缓慢而笨重的。
想法?
2016 年 11 月更新:
从 Aurora 1.8 版开始,您现在可以使用以下命令批量加载 S3 数据:
LOAD DATA FROM S3
或者
LOAD XML FROM S3
2018 年 7 月更新:
更新了 AWS 文档链接。大喊马克福尔摩斯抓住了这一点。
mysql - 是否可以从 Amazon Aurora 迁移回 Amazon RDS 中的原生 MySQL?
我看到 Amazon 推出了从原生 MySQL 到 Amazon Aurora MySQL 的新 Amazon Aurora MySQL迁移。
是否可以使用 Amazon RDS 从 Amazon Aurora 迁移回常规 MySQL?
mysql - AWS Aurora 缓存指标含义
Aurora 有两个查询缓存相关的指标:
- 缓冲区高速缓存命中率:缓冲区高速缓存所服务的请求的百分比。
- 结果集缓存命中率:结果集缓存提供的请求的百分比。
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Monitoring.html
但我找不到解释“缓冲区缓存”和“结果集缓存”之间区别的文档。
这些是什么?
database - 在大型数据集中快速获取朋友的朋友的最佳数据库结构是什么?
我们有 1000 万用户,可以与 150 万种产品进行交互。
在 dynamodb(NoSQL 数据库)中,我们有这样存储的用户友谊:
朋友桌
在 Amazon RDS(SQL 数据库)中,我们有交互:
交互表
到目前为止,当用户访问产品页面时,他们可以看到与该产品进行过交互的朋友。这很容易计算!
但是,如果我们也想向他们的朋友展示朋友怎么办?
对数据库进行建模以实现这一目标的最佳方法是什么?我们可以完全改变数据库结构,做一些数据预处理等。
提前致谢。