How to Create a MySQL Database and User in DirectAdmin
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
- Go to Account Manager › MySQL Management.
- Click Create New Database.
- Enter a database name. DirectAdmin adds your username as a prefix, for example
myuser_shop. - Enter a database username (also prefixed) and generate a strong password.
- 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.