How to Create a MySQL Database
Most web applications (WordPress, Joomla, etc.) require a MySQL database.
Steps
- Log in to DirectAdmin → MySQL Management → Create New Database.
- Enter a Database Name, Username, and Password.
- Click Create.
Connection Details
Use these in your application's configuration:
| Setting | Value |
|---|---|
| Database Host | localhost |
| Database Name | yourusername_databasename |
| Database Username | yourusername_dbusername |
| Database Password | The password you set |
| Port | 3306 |
Note: DirectAdmin prefixes all database and username values with your account username. If your DA username is
webhostand the DB isshop, the full name iswebhost_shop.
Deleting a Database
Go to MySQL Management, tick the database checkbox, click Delete Selected. This is permanent.