DocumentationWhat payment methods does Hostednode accept?What are Hostednode's billing cycles?When is the monthly renewal charge generated?When are services suspended for non-payment?When is a service deleted for non-payment?What should you do if a payment method is unavailable?Are all services subject to VAT?Do you issue receipts or invoices?How to create a customer account on HostednodeDo you accept cryptocurrency payments?How to Access DirectAdmin and Explore the Panel’s Main FeaturesHow to Configure PHP for Subdomains and Additional Domains in DirectAdminHow to change the PHP version and settings in DirectAdminHow to Create an Email Account in DirectAdminHow to use ClamAV antivirus from DirectAdminHow to Enable and Use Redis from DirectAdminHow to Add a Domain Alias and Use It for Email in DirectAdminHow to Add an Additional Domain in DirectAdminHow to Add an Additional User to an Existing Database in DirectAdminHow to configure an autoresponder in DirectAdminHow to Set Up a Vacation Message in DirectAdminHow to Create a Subdomain in DirectAdminHow to Create a Cron Job in DirectAdminHow to Create a Database and Associate Its User in DirectAdminHow to Create an FTP Account in DirectAdminHow to Create a Mailing List in DirectAdminHow to Create an Email Forwarder in DirectAdminHow to Create a Site Redirect in DirectAdminHow to Install WordPress with Softaculous WordPress Management in DirectAdminHow to Install WordPress with the DirectAdmin WordPress ManagerHow to Modify MX Records to Use Google Workspace in DirectAdminHow to review the web application firewall and create a rule exception in DirectAdminHow to Check Account Resource Usage in DirectAdmin
TUTORIAL

How to Create a Database and Associate Its User in DirectAdmin

Create a database with its user in DirectAdmin, save its connection details, and verify the association under Manage.

The Database tool lets you create a database and the user who will have access to it. You can use the simple form or advanced mode to choose a different username and set its password.

Before you begin

  • Log in to the hosting account that will manage the database.

  • Check the database limit and available space.

  • Prepare a recognizable name for the database and save the credentials in a password manager.

1. Open the creation form

From the dashboard, go to Account Manager → Database. Below Database List you will find Create Database.

DirectAdmin dashboard with tool groups and account statistics.
DirectAdmin dashboard with tool groups and account statistics.

Simple mode generates a user with the same name and a secure password. To specify all three details explicitly, open Advanced Mode.

2. Set the database, username, and password

  1. In Database Name, enter the name suffix. Do not repeat the account prefix already shown in the panel.

  2. In Username, enter the suffix for the user that will be created with access to that database. You can use the same suffix or another recognizable one.

  3. Enter a long, unique password or use the panel's generator. Store the password securely.

  4. Review the details and click Create.

Advanced Mode for creating a database with a username and password.
Advanced Mode for creating a database with a username and password.

3. Save the details and check the association

The panel displays Database created and a summary with the hostname, database, username, and password. Save the details before closing: the password is only shown in this summary. Do not share it or include it in screenshots.

The new database appears in the list with an associated user.
The new database appears in the list with an associated user.

Close the summary and locate the database in the list. The Users column should show the user you created. Click Manage in that row to review User Access and their privileges.

User access for a database with its associated user.
User access for a database with its associated user.

Use the connection details shown by your panel when configuring the application. This installation shows localhost; the server and socket location may vary. The presence of the database and user confirms their creation and association, but you must check the connection from the application when configuring it.

If the panel rejects a name or password, follow the validation message and check that the resource does not already exist before trying to create it again.