MySQL databases store the dynamic content for your websites and applications (posts, users, products, etc.).
Creating a Database
- Log in to DirectAdmin.
- Navigate to Account Manager > MySQL Management.
- Enter a name for your new database.
- Create a database user with a strong password.
- Assign the user to the database with appropriate privileges.
- Click Create.
Managing via phpMyAdmin
- Click phpMyAdmin from the MySQL Management page.
- Select your database from the left sidebar.
- Use the tabs to browse tables, run SQL queries, import, or export data.
Connection Details: When configuring your application, use
localhost as the database host. The database name and user will be prefixed with your DirectAdmin username (e.g., username_dbname).Regular database backups are recommended. See our guide on exporting databases for instructions on creating manual backups.