Create a MySQL Database in DirectAdmin
Applications such as WordPress, Joomla, and custom PHP projects need a MySQL database and a dedicated user with access to it. DirectAdmin bundles both into a single creation flow.
1. Sign in to DirectAdmin
Open your panel—typically at yourdomain.com:2222—and authenticate with your hosting credentials.
PosaHosting shortcut
Open the control panel in one click from My Account
2. Open MySQL Management
Scroll to the
Account Managersection on the dashboard.Click
MySQL Management.
3. Create the Database
Click
Create new Database.Choose a name for the database and its primary user. DirectAdmin may prefix both with your account username.
Enter a strong password in the
Database Passwordfield.Click
Create Database.
Record the database name, username, password, and hostname (usually localhost)—your application installer will ask for them.
4. Add Extra Users (Optional)
Some setups require separate database users with limited privileges:
Return to
MySQL Managementand select the target database.Click
Create New User.Enter a username and password for the additional user.
Click
Create.
5. Adjust Privileges (Optional)
In
MySQL Management, select the database whose permissions you want to change.Click
Modify Privilegesbeside the relevant user.Enable or disable specific rights—
SELECT,INSERT,UPDATE,DELETE, and others as needed.Click
Save.