• <legend id='cToXR'><style id='cToXR'><dir id='cToXR'><q id='cToXR'></q></dir></style></legend>

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

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

        <tfoot id='cToXR'></tfoot>

          <bdo id='cToXR'></bdo><ul id='cToXR'></ul>

        AWS RDS - MsSql - 在“master"中创建架构、用户或

        时间:2023-06-06
        <tfoot id='Wjhgj'></tfoot>

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

            1. <small id='Wjhgj'></small><noframes id='Wjhgj'>

                • <bdo id='Wjhgj'></bdo><ul id='Wjhgj'></ul>
                    <tbody id='Wjhgj'></tbody>
                  <legend id='Wjhgj'><style id='Wjhgj'><dir id='Wjhgj'><q id='Wjhgj'></q></dir></style></legend>
                  本文介绍了AWS RDS - MsSql - 在“master"中创建架构、用户或角色或“msdb"数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我使用的是 AWS RDS MsSql express V13.我正在尝试使用我在 RDS 设置期间创建的 root 用户创建架构、用户和角色,但不能.我正在使用 SQL 客户端.

                  I'm using AWS RDS MsSql express V13. I'm trying to create a schema, user and role using the root user I created during the RDS setup but can't. I'm using SQL client.

                  例如:

                  use [master]
                  CREATE USER [my_user] FOR LOGIN [my_login] WITH DEFAULT_SCHEMA=[dbo] 
                  

                  返回:用户无权执行此操作."

                  returns: "User does not have permission to perform this action."

                  推荐答案

                  AWS RDS 限制对 master 数据库的权限,因此您无法在那里创建架构、角色、用户或登录名.

                  AWS RDS restricts permissions on the master database, so you can't create schemas, roles, users, or logins there.

                  您需要创建第二个数据库,然后才能按预期创建架构、用户和角色.

                  You need to create a second database, which will then allow you to create schemas, users, and roles as expected.

                  -- use the master database to create your new database:
                  USE master;  
                  CREATE DATABASE db_test;
                  
                  -- then, use your new database to create your schema, login, and user:
                  USE db_test;
                  CREATE SCHEMA yourschema;
                  CREATE LOGIN [youruser] WITH PASSWORD = '<PASSWORD>';
                  CREATE USER [youruser] FOR LOGIN [youruser] WITH DEFAULT_SCHEMA = [yourschema];
                  

                  这篇关于AWS RDS - MsSql - 在“master"中创建架构、用户或角色或“msdb"数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Laravel Docker 容器无法连接到远程 AWS RDS 数据库 下一篇:SQL Server - EBS 存储设计

                  相关文章

                  最新文章

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

                      <bdo id='66LRr'></bdo><ul id='66LRr'></ul>

                    1. <small id='66LRr'></small><noframes id='66LRr'>