Select location & language
  • Österreich German
  • Australia English
  • België Dutch
  • Canada English
  • Schweiz German
  • Deutschland German
  • Eesti English
  • Ελλάδα English
  • España Spanish
  • France French
  • Hrvatska English
  • Italia English
  • Latvija English
  • Lietuva English
  • Nederland Dutch
  • Norge Norwegian
  • Polska Polish
  • Portugal Portuguese
  • Slovensko English
  • Suomi Finnish
  • Sverige Swedish
  • United Kingdom English
  • United States English
  • American Samoa English
  • Andorra English
  • Anguilla English
  • Antarctica English
  • Bermuda English
  • British Indian Ocean Territory English
  • British Virgin Islands English
  • Cayman Islands English
  • Christmas Island English
  • Città del Vaticano English
  • Cocos (Keeling) Islands English
  • Falkland Islands English
  • French Southern Territories English
  • Gibraltar English
  • Guadeloupe French
  • Guam English
  • Guernsey English
  • Guyane française French
  • Heard & McDonald Islands English
  • Ireland English
  • Isle of Man English
  • Jersey English
  • Liechtenstein German
  • Luxembourg French
  • Malta English
  • Martinique French
  • Mayotte English
  • Monaco French
  • Montserrat English
  • New Zealand English
  • Norfolk Island English
  • Northern Mariana Islands English
  • Pitcairn Islands English
  • Puerto Rico Spanish
  • Réunion English
  • San Marino English
  • Slovenija English
  • St. Barthélemy English
  • St. Helena English
  • St. Martin English
  • St. Pierre & Miquelon English
  • Svalbard & Jan Mayen English
  • Turks & Caicos Islands English
  • U.S. Outlying Islands English
  • U.S. Virgin Islands English
  • Åland Islands English
  • Κύπρος English
  • Црна Гора English

How do I add an extra user to a MySQL database in DirectAdmin?

1 min read

Sometimes you need more than one user account for a database, for example to give an application limited access or to let a developer connect without your main credentials. DirectAdmin lets you create additional MySQL users and assign them to a database. This guide explains how.

Why add another database user #

  • Give an application its own dedicated credentials.
  • Grant a developer access without sharing your main user.
  • Limit permissions so each user has only what it needs.

Creating and assigning a user #

  1. Log in to DirectAdmin.
  2. Go to Account Manager > MySQL Management.
  3. Open the database you want to grant access to.
  4. Create a new user with a strong password, or select an existing one.
  5. Assign the user to the database and set the privileges it should have.
  6. Save.

Choosing privileges #

Grant only what is needed. A typical application user needs data privileges such as SELECT, INSERT, UPDATE, and DELETE, while administrative privileges should be limited. Keeping permissions minimal is good security practice.

Using the new credentials #

Note the database name, the new username, the password, and the host (usually localhost). Enter these into your application’s configuration so it connects with the new user.

Troubleshooting #

  • Access denied: confirm the user is assigned to the database with the right privileges.
  • App cannot connect: re-check the name, user, password, and host.

Need help? #

If a database user will not connect, our support team can help over live chat.

What are your feelings