Knowledge Base
How to Create a MySQL Database in DirectAdmin
Creating and Managing Databases
MySQL databases are required for WordPress and many other web applications.
Creating a New Database
- Log into DirectAdmin
- Click MySQL Management
- Click Create new Database
- Enter a database name (will be prefixed with your username)
- Enter a username for the database
- Enter a strong password (or click generate)
- Click Create
Important: Save Your Credentials
Write down the following information - you'll need it to connect your application:
- Database Name: username_dbname
- Database User: username_dbuser
- Password: (the one you created)
- Host: localhost
Accessing phpMyAdmin
To manage your database visually:
- Go to MySQL Management
- Click phpMyAdmin next to your database
Importing a Database
- Open phpMyAdmin
- Select your database from the left sidebar
- Click the Import tab
- Choose your SQL file
- Click Go
Deleting a Database
- Go to MySQL Management
- Click the trash icon next to the database
- Confirm deletion
Warning: This permanently deletes all data!