---
title: How to create a MySQL Database in DirectAdmin
description: "## How to Create a MySQL Database in DirectAdmin - You first need to login into DirectAdmin control panel using one of the URLs below,  ```  https://IP-address:2222 or https://server-hostname:2222. ``` ![](https://truehost.com/support/wp-content/uploads/2024/11/image-155.png) - Next is to go to **Account Manager →** **MySQL Management**. ![](https://truehost.com/support/wp-content/uploads/2024/11/image-233.png) -…"
url: "https://truehost.com/support/knowledge-base/how-to-create-a-mysql-database-in-directadmin/"
updated: "2024-11-12"
category: Cloud servers in Kenya
---

# How to create a MySQL Database in DirectAdmin

## How to Create a MySQL Database in DirectAdmin

- You first need to login into DirectAdmin control panel using one of the URLs below, 

```
 https://IP-address:2222 or https://server-hostname:2222.
```

![](https://truehost.com/support/wp-content/uploads/2024/11/image-155.png)

- Next is to go to **Account Manager →** **MySQL Management**.

![](https://truehost.com/support/wp-content/uploads/2024/11/image-233.png)

- To create a new database, click on Create New Database

![](https://truehost.com/support/wp-content/uploads/2024/11/image-234.png)

- You will then input the needed details.
  - **Database name**
  - **Create a user for DB:**De-select “Same as database name”, unless if you want them to be same
  - **Enter the Username**
  - **Configure the Password**.

![](https://truehost.com/support/wp-content/uploads/2024/11/image-235.png)

- Once you have input the details, click on **CREATE DATABASE**.

![](https://truehost.com/support/wp-content/uploads/2024/11/image-236.png)

- Your database is now created and you can see it among the available databases when you list them

## How to delete a MySQL Database in DirectAdmin

- You first need to login into DirectAdmin control panel using one of the URLs below, 

```
 https://IP-address:2222 or https://server-hostname:2222.
```

![](https://truehost.com/support/wp-content/uploads/2024/11/image-155.png)

- Next is to go to **Account Manager →** **MySQL Management**

![](https://truehost.com/support/wp-content/uploads/2024/11/image-237.png)

- Check the box that's next to the Database that you wan to delete, then click on **Delete**

![](https://truehost.com/support/wp-content/uploads/2024/11/image-238.png)

- You will be asked to confirm the deletion. Do thta by Clicking on **Delete**.

![](https://truehost.com/support/wp-content/uploads/2024/11/image-239.png)

- Your database will now be deleted from the panel.
