Sometimes you need a database user that already exists to also have access to a second database, for example if a developer needs one login across a staging and a live database. Both control panels support this, though the process differs.
In cPanel
- Log in to cPanel and open MySQL Databases.
- Scroll to Add User To Database.
- Select the existing user from the User dropdown and the target database from the Database dropdown.
- Click Add.
- On the privileges screen, tick the specific privileges the user needs, or ALL PRIVILEGES for full access, then click Make Changes.
In DirectAdmin
- Log in to DirectAdmin and open MySQL Management.
- Open the database you want to grant access to.
- Under the user access section, select the existing username from the list of available users.
- Click Modify or Add to confirm.
Choosing Privileges
If a user only needs to read data, for example a reporting tool, grant SELECT only rather than full privileges. Most applications that write to their own database, like a CMS or e-commerce platform, need broader privileges including SELECT, INSERT, UPDATE, and DELETE at minimum.
Avoid granting one user access to every database on the account unless there's a specific reason. Keeping database access scoped to what each application actually needs limits the damage if a single application is ever compromised.