All Products
Search
Document Center

ApsaraDB for MyBase:Create a host account

Last Updated:Mar 28, 2026

Before connecting to a host in your ApsaraDB for MyBase dedicated cluster, create a host account. Two methods are available depending on your database engine and whether you use a bastion host.

MethodSupported enginesRequirements
Associate with Bastion Host pageMySQL, SQL Server, PostgreSQLA Bastionhost instance is already created
Host details pageSQL Server onlyNo bastion host required
Important

OS permissions must be granted when you create the dedicated cluster. If you skipped this step, re-create the cluster with OS permissions enabled. For details, see Create a dedicated cluster.

Create a host account on the Associate with Bastion Host page

Prerequisites

Before you begin, ensure that you have:

  • A dedicated cluster running MySQL, SQL Server, or PostgreSQL, with OS permissions granted

  • A Bastionhost instance. For details, see Create a bastion host

Procedure

  1. Log on to the Bastionhost console. Find the bastion host and click Run to enable it. For details, see Enable a bastion host.

    Enable a bastion host

  2. Log on to the ApsaraDB for MyBase console. In the upper-left corner, select a region.

  3. Find the dedicated cluster and click Details in the Actions column.

  4. In the left-side navigation pane, click Bastion Hosts. Find the bastion host and click Associate with Bastion Host in the Actions column.

    Associate an ApsaraDB MyBase host with a bastion host

  5. Click Import Host

  6. Find the ApsaraDB for MyBase host and click Add an account in the Host Account column.

    Host account

  7. In the Create Host Account dialog box, configure the parameters.

    ParameterDescriptionExample
    UsernameLowercase letters, digits, and underscores (_). Must start with a lowercase letter and end with a lowercase letter or digit. Length: 2–16 characters. Cannot be root, admin, or other reserved names.dbadmin
    Account typeAvailable only for SQL Server clusters. Select Standard Account or Administrator. For details about permissions, see Host permissions.Standard Account
    PasswordAt least three of: uppercase letters, lowercase letters, digits, and special characters (! @ # $ % ^ & * ( ) _ + - =). Length: 6–32 characters. For SQL Server clusters, the password cannot contain the username (case-insensitive).MyPass@2024

    Create Host Account dialog box

  8. Click Create.

Note

After creating the account, edit or delete it in the Bastionhost console. For details, see Configure account information for a host.

Create a host account on the host details page

This method applies to SQL Server clusters only. No bastion host is required.

Prerequisites

Before you begin, ensure that you have:

  • A dedicated cluster running SQL Server, with OS permissions granted

Procedure

  1. Log on to the ApsaraDB for MyBase console. In the upper-left corner, select a region.

  2. In the left-side navigation pane, click Hosts.

  3. Find the host and click Details in the Actions column.

  4. On the Host Information tab, click Create and configure the parameters.

    ParameterDescriptionExample
    UsernameLowercase letters, digits, and underscores (_). Must start with a lowercase letter and end with a lowercase letter or digit. Length: 2–16 characters. Cannot be root, admin, test, or other reserved names.dbadmin
    Account typeSelect the account type. For details about permissions, see Host permissions.
    PasswordAt least three of: uppercase letters, lowercase letters, digits, and special characters (! @ # $ % ^ & * ( ) _ + - =). Length: 8–32 characters. The password cannot contain the username (case-insensitive).MyPass@2024
  5. Click Create.

Note

After creating the account, edit or delete it on the Host Information tab. For details, see Manage a host account.

API reference

OperationDescription
CreateDedicatedHostAccountCreates a host account
ModifyDedicatedHostAccountChanges the username and password of a host account
DeleteDedicatedHostAccountDeletes a host account

What's next

After creating a host account, connect to the host: