Back to Knowledge Base
Knowledge Base Databases (MySQL) How to Create a MySQL Database

How to Create a MySQL Database

Databases (MySQL) 30/11/2026

Most web applications (WordPress, Joomla, etc.) require a MySQL database.

Steps

  1. Log in to DirectAdmin → MySQL Management → Create New Database.
  2. Enter a Database Name, Username, and Password.
  3. 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 webhost and the DB is shop, the full name is webhost_shop.

Deleting a Database

Go to MySQL Management, tick the database checkbox, click Delete Selected. This is permanent.

Was this article helpful?