1. Websta Hosting
Databases (MySQL)

How to Create a MySQL Database

How to Create a MySQL Database

Most web applications (WordPress, Joomla, etc.) require a MySQL database.

Steps

  1. Log in to DirectAdmin → MySQL Management → Create New Database.
  2. Enter a Database Name, Username, and Password.
  3. Click Create.

Connection Details

Use these in your application's configuration:

Setting Value
Database Host localhost
Database Name yourusername_databasename
Database Username yourusername_dbusername
Database Password The password you set
Port 3306

Note: DirectAdmin prefixes all database and username values with your account username. If your DA username is webhost and the DB is shop, the full name is webhost_shop.

Deleting a Database

Go to MySQL Management, tick the database checkbox, click Delete Selected. This is permanent.

Still need help?

If this article didn't answer your question, our support team can help.

Contact support
All articles More in Databases (MySQL)