How to Create a MySQL Database and User in DirectAdmin

Databases 1 min read Updated Oct 30, 2026

Most websites, including WordPress, store their content in a database. DirectAdmin creates the database and its user in one step.

Good to know Menu names in this guide follow DirectAdmin’s default Evolution skin. If your dashboard uses a different layout (Grid, Sidebar or Refreshed), the same tools exist under the same names — use the search box at the top of DirectAdmin to jump straight to them.

Create a database

  1. Go to Account Manager › MySQL Management.
  2. Click Create New Database.
  3. Enter a database name. DirectAdmin adds your username as a prefix, for example myuser_shop.
  4. Enter a database username (also prefixed) and generate a strong password.
  5. Click Create. Copy the details shown on the confirmation screen.

Connection details for your app

Database host localhost
Database name The full prefixed name, e.g. myuser_shop
Username The full prefixed username
Password The password you set

Remote access To connect from your own computer, add your IP address under Access Hosts for the database. Remote access may be disabled on some plans for security.

Frequently asked questions

Is it MySQL or MariaDB?

Many DirectAdmin servers run MariaDB, which is a drop-in replacement for MySQL. Apps that support MySQL work with it.

Related articles

Still need help?

Our support team is here for you.

Email: support@crowncityhost.com

Open a ticket