How do I create a user in PostgreSQL?

cPanel 94.0.4 web-hosting control panel

Databases: Create PostgreSQL User

Overview

There are two primary steps when creating a PostgreSQL user. The first step is to create a username and password combination for the user. The second step is to add the user to the database you want the user to access.

Steps
  1. In the "New User" section, enter the username and password you want to use for this database in the "Username" and "Password" text boxes, respectively.
  2. Next, click on the Create User button.
  3. You should see the following statement:
    • "Added USERNAME with the password PASSWORD."
  4. Click on the Go Back link.
  5. Find the "Add User To Database" section. Select the user you created in Step 6 above from the "User" drop down menu. Then select the database you want to add the user to from the "Database" drop down menu.
  6. Next, click on the Submit button.
  7. You should see the following statement:
    • "User USERNAME was added to the database DATABASE."
  8. Click on the Go Back link.
  9. You should now see the user you created in Step 1 above in the "Users" column.
  • 0 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

How do I check my MySQL database?

cPanel 94.0.4 web-hosting control panel Databases: Check MySQL DB You can check to see if your...

How do I create a MySQL database?

cPanel 94.0.4 web-hosting control panel Databases: Create MySQL Database Overview MySQL...

How do I create a PostgreSQL database?

cPanel 94.0.4 web-hosting control panel Databases: Create PostgreSQL Database Overview...

How do I create a user in MySQL?

cPanel 94.0.4 web-hosting control panel Databases: Create MySQL User Overview There are two...

How do I delete a MySQL database?

cPanel 94.0.4 web-hosting control panel Databases: Delete MySQL Database Overview You can...