Creating an additional database user in DirectAdmin

An additional database user lets you give a separate application or operator its own credential. This makes access easier to limit and revoke without changing every application that uses the database.

Check access and requirements

Identify the intended database and the required privileges. Choose a descriptive username, prepare a unique password and check whether the application connects locally or from an explicitly permitted remote host. Avoid a shared administrator credential.

01 Create an additional database user in DirectAdmin

  1. Open MySQL Management and select the target database.
  2. In its user section, choose Create New User or the available add-user action.
  3. Enter the username and generated password. Review the complete account-prefixed name shown in the result; the short name alone may not authenticate.
  4. Assign the user to the intended database and review its privileges. Do not assume the initial grant set is appropriate for a read-only report or a restricted integration.
  5. Configure the new credential in the application and test it before removing any old user. Store the secret in the application supported configuration mechanism and your approved credential manager.

How do I test the additional database user?

Test a fresh connection and the intended read/write workflow with this specific user. Confirm it cannot access unrelated databases. If replacing a shared credential, verify all dependencies before revoking the old one.

Resolve setup problems

If the user cannot connect, check the full name, password, host matching and database assignment. If the name is already taken, determine whether that user is intentionally shared before editing it. Do not enable unrestricted remote access as a shortcut. Report the sanitized connection error to support when host-level restrictions are unclear.

Sources and further reading

  • 0 Users Found This Useful
  • control-panels, development
Was this answer helpful?

Related Articles

Changing a database-user password in DirectAdmin

A database password belongs to a database user, not to the database itself. Changing it can...

Setting database-user privileges in DirectAdmin

Database privileges determine what an application user can do within an assigned database. The...

Checking whether a DirectAdmin database repair is appropriate

The database Repair action is not a universal fix. It can apply to supported table engines, but...

Checking and optimizing database tables in DirectAdmin

Check and Optimize perform different database maintenance operations. Checking looks for...

Deleting an unused database in DirectAdmin

Deleting a database removes its tables and stored records. It is appropriate for a confirmed...