简体   繁体   English

如何在Amazon RDS上设置具有sysadmin权限的用户

[英]How to setup a user with sysadmin rights on Amazon RDS

I started using Amazon RDS and I am trying to link two of my databases together but I don't have the appropriate permissions to do it. 我开始使用Amazon RDS并尝试将两个数据库链接在一起,但我没有相应的权限来执行此操作。 When I setup the database for the first time is only letting me setup a regular user without sysadmin rights. 当我第一次设置数据库时,只允许我设置没有sysadmin权限的普通用户。 Is there anyway of getting sysadmin rights? 无论如何获得系统管理员权利? Also, there is a user rdsa (with sysadmin rights) but I don't have access to it since is something that I guess amazon added to my RDS instance automatically on creation. 此外,有一个用户rdsa(具有sysadmin权限),但我无权访问它,因为我猜亚马逊在创建时自动添加到我的RDS实例。 Any thought on that? 有什么想法吗?

Edit: I am running a MS SQL Server 编辑:我正在运行MS SQL Server

Because RDS is a managed service they limit what you are able to do with it. 由于RDS是托管服务,因此它们限制了您可以使用它执行的操作。 According to the RDS documentation for MSSQL this includes the following restrictions: 根据MSSQLRDS文档,这包括以下限制:

The following server-level roles are not currently available in Amazon RDS: Amazon RDS中当前不提供以下服务器级角色:

bulkadmin bulkadmin

dbcreator dbcreator

diskadmin diskadmin

securityadmin 是securityadmin

serveradmin 的ServerAdmin

sysadmin 系统管理员

And also: 并且:

Amazon RDS currently does not support the following SQL Server features: Amazon RDS目前不支持以下SQL Server功能:

... ...

Replication 复制

Even if they did support replication for MSSQL it would likely be limited to replicating with other RDS instances. 即使他们确实支持MSSQL的复制,也可能仅限于与其他RDS实例进行复制。 With MySQL they only support replication between RDS instances, so if/when they support it with MSSQL it will likely have similar restrictions. 使用MySQL,它们只支持RDS实例之间的复制,因此如果/当它们使用MSSQL支持它时,它可能会有类似的限制。

I think you need to create a separate user with the appropriate permissions with a query. 我认为您需要使用查询创建具有适当权限的单独用户。 Similar question with answer here: https://serverfault.com/questions/496966/amazon-rds-sql-server-master-user-privileges 类似的问题在这里回答: https//serverfault.com/questions/496966/amazon-rds-sql-server-master-user-privileges

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

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