All Products
Search
Document Center

ApsaraDB for MyBase:Create a host account

Last Updated:Jul 14, 2023

Before you connect to a host in a dedicated cluster that uses the ApsaraDB MyBase for MySQL engine, you must create a host account. This topic describes how to create an account for a host in a dedicated cluster that uses the ApsaraDB MyBase for MySQL engine.

Prerequisites

Procedure

  1. Log on to the Bastionhost console. Find the bastion host that you want to manage and click Run on the right side to enable the bastion host. For more information, see Enable a bastion host.

    Enable a bastion host
  2. Associate an ApsaraDB for MyBase host with the bastion host.

    1. Log on to the ApsaraDB for MyBase console.

    2. In the upper-left corner of the page, select a region.

    3. Find the dedicated cluster that you want to manage and click Details in the Actions column.

    4. In the left-side navigation pane, click Bastion Hosts. On the page that appears, find the bastion host that you want to manage and click Associate with Bastion Host in the Actions column. Associate an ApsaraDB MyBase host with a bastion host

    5. Click Import Host. In the dialog box that appears, select the host that you want to import and click Import.

  3. Create a host account.

    1. Find the host that you want to manage, and click Add an account in the Host Account column. Host account

    2. In the Create Host Account dialog box, configure the following parameters.

      ss

      Parameter

      Description

      Username

      The username must start with a lowercase letter and end with a letter or a digit.

      • The username can contain lowercase letters, digits, and underscores (_).

      • The username must be 2 to 16 characters in length.

      • The username cannot be root, admin, or another username that is reserved by the system.

      Password

      The password of the account. The password must meet the following requirements:

      • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.

      • The password must be 6 to 32 characters in length.

      • The password can contain the following special characters: ! @ # $ % ^ & * ( ) _ + - =

    3. Click Create.

      Note

      After you create a host account, you can modify or delete the host account in the Bastionhost console. For more information about how to modify and delete a host account, see Configure account information for a host.

What to do next

After the host account is created, connect to the host. For information about how to connect to a host, see Log on to a host by using a bastion host in Linux.