How to Create a Database
Creating a MySQL/MariaDB Database
- Log in to DirectAdmin
- Go to Account Manager → MySQL Management (or Databases)
- Click Create New Database
- Enter:
mysite_wp)
- Database user — the username for connecting
- Password — a strong password
- Click Create
Connection Details
Use these in your application (WordPress, custom PHP, etc.):
| Setting | Value |
|---|---|
| Host | localhost |
| Database | The name you chose |
| Username | The user you created |
| Password | The password you set |
| Port | 3306 (default) |
Managing Databases
From the MySQL Management page you can:
- View existing databases and their sizes
- Delete databases
- Change passwords
- Access phpMyAdmin for direct SQL access
Was this article helpful?