> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# Post-deployment setup

> Before getting your new cluster into production, you must secure the initial account and set the necessary variables and properties to allow your...

This topic describes tasks that you should perform after deploying the database.

Before getting your new cluster into production, you must secure the initial account and set the necessary variables and properties to allow your cluster to run properly.

## Secure initial account

Upon the creation of a cluster, the initial `root` user of the cluster is generated automatically. The `root` user is granted the `root` privileges, which are the collection of all privileges within the cluster. We recommend you secure this user account and avoid using it in production to prevent misuse.

The database automatically assigns an empty password to the `root` user when the cluster is created. Follow these procedures to set a new password for the `root` user:

1. Connect to the database via your MySQL client with the username `root` and an empty password.

   ```sh theme={null}
   # Replace <fe_address> with the IP address (priority_networks) or FQDN 
   # of the FE node you connect to, and replace <query_port> 
   # with the query_port (Default: 9030) you specified in fe.conf.
   mysql -h <fe_address> -P<query_port> -uroot
   ```

2. Reset the password of the `root` user by executing the following SQL:

   ```SQL theme={null}
   -- Replace <password> with the password you want to assign to the root user.
   SET PASSWORD = PASSWORD('<password>')
   ```

**Note**

* Keep the password properly after resetting it. If you forgot the password, see [Reset lost root password](/documents/4.2/administration/user_privs/authentication/native_authentication.md#reset-lost-root-password) for detailed instructions.
* After completing the post-deployment setup, you can create new users and roles to manage the privileges within your team. See [Manage user privileges](/documents/4.2/administration/user_privs/authorization/User_privilege.md) for detailed instructions.

## Set necessary system variables

To allow your cluster to work properly in production, you need to set the following system variables:

### enable\_profile

#### Description

The boolean switch that controls whether to send the profile of a query for analysis.
The default value is `false`, which means no profile is required.
Setting this variable to `true` can affect the concurrency of the database.

#### Recommended value

false

* Set `enable_profile` to `false` globally:

  ```SQL theme={null}
  SET GLOBAL enable_profile = false;
  ```

### enable\_pipeline\_engine

#### Description

The boolean switch that controls whether to enable the pipeline execution engine.
`true` indicates enabled and `false` indicates the opposite. Default value: `true`.

#### Recommended value

true

* Set `enable_pipeline_engine` to `true` globally:

  ```SQL theme={null}
  SET GLOBAL enable_pipeline_engine = true;
  ```

### parallel\_fragment\_exec\_instance\_num

#### Description

The number of instances used to scan nodes on each BE. The default value is `1`.

#### Recommended value

If you have enabled the pipeline engine, you can set this variable to `1`.
If you have not enabled the pipeline engine, you should set it to half the number of CPU cores.

* Set `parallel_fragment_exec_instance_num` to `1` globally:

  ```SQL theme={null}
  SET GLOBAL parallel_fragment_exec_instance_num = 1;
  ```

For more information about system variables, see [System variables](/documents/4.2/sql-reference/System_variable.md).

## Set user property

If you have created new users in your cluster, you need to enlarge their maximum connection number (to `1000`, for example):

```SQL theme={null}
-- Replace <username> with the username you want to enlarge the maximum connection number for.
ALTER USER '<username>' SET PROPERTIES ("max_user_connections" = "1000");
```

## What to do next

After deploying and setting up your cluster, you can then proceed to design tables that best work for your scenarios. See [Understand table design](/documents/4.2/table_design/table_design.md) for detailed instructions on designing a table.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.