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**".

![](https://support2.scriptcase.net/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbmhSIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d9aab7eb92f6e4144c8db8d43cb7b3d36569b8c2/image%20-%202026-07-13T071516.751.png)

\
**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](https://help.scriptcase.net/portal/en/kb/articles/how-to-create-a-postgresql-database)

**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](https://help.scriptcase.net/portal/en/kb/articles/how-to-create-a-user-for-postgresql-database)

**5. Associate User with the Database:**

In the "**Add User to Database**" section:

\
![](https://support2.scriptcase.net/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbnBSIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--26503da6e34fa68ff4bd82c50337305d9a81273c/image%20-%202026-07-13T071530.646%20(1).png)

* 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**".

  ![](https://support2.scriptcase.net/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbnRSIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--6fcedc53a77e7ff4a7173ff2fd6efde6f9d871f1/image%20-%202026-07-13T071608.677.png)

  

**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.**