For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /directadmin/database_management/how_to_create_a_database_in_directadmin.md.

How to Create a Database in DirectAdmin

Info

If you are using the Standard Theme in DirectAdmin, switch to the Refreshed Theme by following How to Change Theme or Layout on DirectAdmin

In the Standard Theme

Click here to show the steps

Log in to DirectAdmin

Log in to the DirectAdmin control panel.

Open MySQL Management

Navigate to Account Manager → MySQL Management.

MySQL Management option in DirectAdmin Standard Theme

Create a new database

Click Create New Database.

Create New Database option in DirectAdmin Standard Theme

Enter database details

Set the database name, username, and password.

Database creation form in DirectAdmin Standard Theme

The following details are required:

  1. Database Name: The name assigned to the database. You will need this when configuring your application to connect to MySQL. For example, mydatabase or database1.
  2. Database User: The username used to authenticate access to the database. For example, dbuser or user1.
  3. Database Password: The password used to authenticate access to the database. We recommend using a strong password.

Click Create Database to create the database.

View database details

Once the database is created, DirectAdmin displays the details of the newly created database account.

Newly created database account details

In the Refreshed Theme

Log in to DirectAdmin

Log in to the DirectAdmin control panel.

Open MySQL Management

Navigate to Account Manager → MySQL Management.

MySQL Management option in DirectAdmin Refreshed Theme

Create a new database

Click Create New Database.

Create New Database option in DirectAdmin Refreshed Theme

Enter database details

Set the database name, username, and password.

Database creation form in DirectAdmin Refreshed Theme

The following details are required:

  1. Database Name: The name assigned to the database. You will need this when configuring your application to connect to MySQL. For example, mydatabase or database1.
  2. Database User: The username used to authenticate access to the database. For example, dbuser or user1.
  3. Database Password: The password used to authenticate access to the database. We recommend using a strong password.

Click Create Database to create the database.

View database details

Once the database is created, DirectAdmin displays the details of the newly created database account.

Newly created database account details