Support 24/7 Service status
Hosting
Email
Discounts
Help
Company
Sign in Support 24/7
Get started

Creating a MySQL database

Create a MySQL database and user in DirectAdmin, connect your app to it, and manage it with phpMyAdmin.

Updated 15 November 2026

Most dynamic websites, including WordPress, store their content in a MySQL database. If you install an app with Softaculous, the database is created for you. For your own code, or a manual install, create one like this.

Create the database

  1. Open DirectAdmin from your service page (one-click login).
  2. Go to Account Manager → MySQL Management and choose Create new database.
  3. Enter a database name and a username. DirectAdmin adds your account name in front of both, for example yourname_shop.
  4. Generate a strong password and copy it now.
  5. Create it.

Connect your app

Use these details in your app's configuration file (for example WordPress's wp-config.php):

Setting Value
Database host localhost
Database name the full name, including your account prefix
Username the full username, including the prefix
Password the one you just set

Manage it with phpMyAdmin

In MySQL Management, choose phpMyAdmin to browse tables, run queries, and import or export .sql files. To import a database from your old host, open the database in phpMyAdmin and use Import.

Limits and backups

Your plan sets how many databases you can create; see the plan comparison. Databases are included in your daily backups.

Still stuck?

Open a ticket and a real person will help you, any time of day.

Open a ticket Other ways to reach us

Ready to go live?

Pick a plan in a minute and your site's ready shortly after.

Get started