How to associate the user with the PostgreSQL Database

Á

Álvaro Moura

Last updated on Jul 13, 2026

To associate a user with a PostgreSQL database in cPanel, follow the detailed steps below:

1. Access cPanel:

Log in to your cPanel account.

2. Go to the Databases section:

On the cPanel home page, locate the "Databases" section.
Click on "PostgreSQL Databases".


3. Create a Database (if necessary):

If you don't have a database yet, create a new one. In the "Create New Database" section, enter the database name and click "Create Database". Look: Here

4. Create a PostgreSQL User (if necessary):

Scroll down to the "Add New User" section.
Enter the desired username and password.
Click "Create User". Look: Here

5. Associate User with the Database:

In the "Add User to Database" section:


  • Select the user you created from the "User" menu.

  • Select the database you want to associate the user with from the "Database" menu.

  • Click "Submit".

Important Note:

Name and Password: Use a strong and secure password for the database user.

By following these steps, you will be able to associate a user with a PostgreSQL database in cPanel. If you encounter any specific difficulties, the hosting support team can provide assistance.