简体   繁体   English

在AWS中安全读取RDS实例数据库

[英]Safely reading RDS instance database in AWS

I am newly working with AWS as a service for a wordpress website I am not familiar with how to safely view the SQL data and do not wish to crash/modify/edit any of the data but simply to read it 我正在与AWS一起为wordpress网站提供服务,我不熟悉如何安全地查看SQL数据,也不希望崩溃/修改/编辑任何数据,而只是阅读它

From the RDS > Instances > Name I dont see anything that screams read only safe inspection sort of deal, any clarification on safely looking into the data would be great 从“ RDS”>“实例”>“名称”,我看不到任何尖叫声,只读取了安全检查之类的内容,有关安全查看数据的任何澄清都很好

You would probably want to create a read-only user in the database. 您可能希望在数据库中创建一个只读用户。 For example, if you're using MySQL, you could do it as described in this StackOverflow answer . 例如,如果您使用的是MySQL,则可以按照此StackOverflow答案中的说明进行操作 Then in your application, you would use the username and password of the read-only user to access data in the database. 然后,在您的应用程序中,您将使用只读用户的用户名和密码来访问数据库中的数据。

If you prefer using IAM to authenticate instead of the database username/password (you get things like automatic password rotation etc. for free), you can set up a read-only database user and then connect it to an IAM user as described in this AWS knowledge center post . 如果您希望使用IAM而不是数据库用户名/密码来进行身份验证(您可以免费获得自动密码轮换等功能),则可以设置一个只读数据库用户,然后将其连接到IAM用户,如本说明中所述。 AWS知识中心帖子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM