Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Creating a Subaccount of rdsuser

Updated on 2024-11-21 GMT+08:00

Scenarios

This section describes how to create a subaccount and grant permissions to the subaccount. Permissions of rdsuser lists the permissions supported by rdsuser.

Prerequisites

You have created a database. For details, see Creating a Database.

Procedure

  1. Log in to the instance through DAS.

    1. Log in to the management console.
    2. Click in the upper left corner and select a region.
    3. Click in the upper left corner of the page and choose Databases > Relational Database Service.
    4. Locate the target instance and click Log In in the Operation column.
    5. On the displayed page, configure required parameters.
      Table 1 Instance login

      Parameter

      Description

      Login Username

      Enter rdsuser.

      Password

      Enter the password of rdsuser.

      NOTE:

      You can select Remember Password so that you can directly log in to the instance next time.

      Collect Metadata Periodically

      Enable this function as required. If this function is enabled:

      • DAS can store structure definition data such as database names, table names, and field names in instances, but does not store data in tables.
      • Metadata is collected in the early morning every day.

      Show Executed SQL Statements

      Enable this function as required. This function allows you to view executed SQL statements. You can re-execute an SQL statement without having to enter it again.

    6. Click Log In.

  2. Create a subaccount.

    1. On the main menu of the DAS console, choose Account Management > Login Name.
    2. On the displayed page, click Create Login Name.
    3. On the Create Login Name page, configure login information.
      Table 2 Login information

      Parameter

      Description

      Login Name

      Enter a new login name.

      Authentication Type

      The value is fixed to Microsoft SQL Server Authentication.

      Password

      The password for the new login username must meet the following requirements:

      • It must contain at least three of the following: uppercase letters, lowercase letters, digits, and special characters ~!@#$^*-_=+?%
      • It must be 8 to 128 characters long.
      • It cannot contain the login username.
      • It cannot be a weak password.

      Confirm Password

      Enter the password again.

      NOTE:

      For security purposes, select Enforce Password Policy.

      Default Database

      From the drop-down list, select a database the new login user will log in by default.

      Default Language

      Select a language for the new login user.

    4. Click Save.
    5. Click Back to Login Name List.
    6. In the login name list, view the new login name.

  3. Grant permissions to the new login user.

    NOTE:
    • Table 3 describes how to add a single permission. To add multiple permissions to the new login user at the same time, for example, to grant both read and write permissions, select both db_datareader and db_datawriter on the Edit Database Role page.
    • For details about the permissions supported by rdsuser, see Permissions of rdsuser.
    Table 3 Permissions that can be granted to a subaccount

    Permission

    Procedure

    Database operation permission

    1. Locate the new login name and click Edit in the Operation column.
    2. On the displayed page, click the User Mapping tab.
    3. In the Users mapped to this login list, click Edit in the row where both the user database and the new login username exist.
    4. On the Edit Database Role page, select db_owner and click OK.
    5. Click Save.

    Server role permission

    1. Locate the new login name and click Edit in the Operation column.
    2. On the displayed page, click the Server Roles tab.
    3. In the Server Roles list, select the desired server role.
    4. Click Save.

    Securable object permission

    1. Locate the new login name and click Edit in the Operation column.
    2. On the displayed page, click the Securables tab.
    3. In the securables list, select the desired server permission.
    4. Click Save.

    Read-only permission

    1. Locate the new login name and click Edit in the Operation column.
    2. On the displayed page, click the User Mapping tab.
    3. In the Users mapped to this login list, click Edit in the row where both the user database and the new login username exist.
    4. On the Edit Database Role page, select db_datareader and click OK.
    5. Click Save.

    Write permission

    1. Locate the new login name and click Edit in the Operation column.
    2. On the displayed page, click the User Mapping tab.
    3. In the Users mapped to this login list, click Edit in the row where both the user database and the new login username exist.
    4. On the Edit Database Role page, select db_datawriter and click OK.
    5. Click Save.

Permissions of rdsuser

Table 4 Permissions of rdsuser

Name

Category

Permission

DB instance permissions

DB instance role permissions

[processadmin]

[setupadmin]

DB instance object permissions

ALTER ANY CONNECTION

ALTER ANY LOGIN

ALTER ANY SERVER ROLE

ALTER SERVER STATE

ALTER TRACE

CONNECT ANY DATABASE

CONTROL SERVER

CONNECT SQL

CREATE ANY DATABASE

SELECT ALL USER SECURABLES

VIEW ANY DEFINITION

VIEW ANY DATABASE

VIEW SERVER STATE

Database permissions

master: Public

Msdb: Public

SQLAgentUserRole

Model: Public

Rdsadmin: Public

OtherDB: Db_Owner

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback