Creating a MySQL/MariaDB Database

  1. Log in to DirectAdmin
  2. Go to Account ManagerMySQL Management (or Databases)
  3. Click Create New Database
  4. Enter:
- Database name — a short identifier (e.g., mysite_wp) - Database user — the username for connecting - Password — a strong password
  1. Click Create
DirectAdmin will create the database and user, and grant the user full permissions on that database.

Connection Details

Use these in your application (WordPress, custom PHP, etc.):

SettingValue
Hostlocalhost
DatabaseThe name you chose
UsernameThe user you created
PasswordThe password you set
Port3306 (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