{"id":6243,"date":"2020-12-28T20:20:16","date_gmt":"2020-12-28T20:20:16","guid":{"rendered":"https:\/\/truehost.co.ke\/support\/?post_type=ht_kb&#038;p=6243"},"modified":"2024-06-07T13:03:13","modified_gmt":"2024-06-07T13:03:13","password":"","slug":"how-to-create-a-postgresql-user-adding-them-to-the-database","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-postgresql-user-adding-them-to-the-database\/","title":{"rendered":"How To Create a PostgreSQL User &#038; Adding them to the Database"},"content":{"rendered":"\n<p>In this guide, we will show you how to create a PostgreSQL User, and then add them to a database. <\/p>\n\n\n\n<p><strong>You must&nbsp;<a href=\"https:\/\/truehost.co.ke\/support\/knowledge-base\/how-to-create-a-postgresql-database-in-the-cpanel\/\">create a PostgreSQL database<\/a>&nbsp;before attempting this guide.<\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>How to Create A PostgreSQL User<\/strong><\/h4>\n\n\n\n<p>Step 1: Login to cPanel.<\/p>\n\n\n\n<p>Step 2: Click the&nbsp;<strong>PostgreSQL Databases<\/strong>&nbsp;button in the&nbsp;<em>Databases<\/em>&nbsp;section.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"150\" src=\"https:\/\/truehost.co.ke\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-1-1024x150.png\" alt=\"\" class=\"wp-image-6246\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-1-1024x150.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-1-300x44.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-1-768x112.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-1-50x7.png 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-1-920x135.png 920w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-1-600x88.png 600w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-1-320x47.png 320w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-1.png 1374w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Step 3: In the&nbsp;<em>Add New User<\/em>&nbsp;section, enter a username, then your password in the available fields. Be sure to use a&nbsp;<strong><em>strong password<\/em><\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"407\" src=\"https:\/\/truehost.co.ke\/support\/wp-content\/uploads\/2020\/12\/PostgreSQLUsers-1024x407.png\" alt=\"\" class=\"wp-image-6247\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQLUsers-1024x407.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQLUsers-300x119.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQLUsers-768x305.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQLUsers-50x20.png 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQLUsers-920x366.png 920w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQLUsers-600x239.png 600w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQLUsers-320x127.png 320w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQLUsers.png 1099w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Step 4: Click the&nbsp;<strong>Create User<\/strong>&nbsp;button.<\/p>\n\n\n\n<p>Up to that point, we are done with creating the PostreSQL Database user. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How to Add a User to a Database<\/strong><\/h3>\n\n\n\n<p>Step 1: Login to cPanel.<\/p>\n\n\n\n<p>Step 2: Click the&nbsp;<strong>PostgreSQL Database<\/strong>&nbsp;button in the&nbsp;<em>Databases<\/em>&nbsp;section.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"150\" src=\"https:\/\/truehost.co.ke\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-2-1024x150.png\" alt=\"\" class=\"wp-image-6248\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-2-1024x150.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-2-300x44.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-2-768x112.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-2-50x7.png 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-2-920x135.png 920w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-2-600x88.png 600w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-2-320x47.png 320w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-2.png 1374w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Step 3: In the&nbsp;<em>Add User To Database<\/em>&nbsp;section, select the&nbsp;<strong>User<\/strong>&nbsp;you want to add from the drop-down menu.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"859\" height=\"275\" src=\"https:\/\/truehost.co.ke\/support\/wp-content\/uploads\/2020\/12\/PostgreAddUser.png\" alt=\"\" class=\"wp-image-6249\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreAddUser.png 859w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreAddUser-300x96.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreAddUser-768x246.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreAddUser-50x16.png 50w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreAddUser-600x192.png 600w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2020\/12\/PostgreAddUser-320x102.png 320w\" sizes=\"auto, (max-width: 859px) 100vw, 859px\" \/><\/figure>\n\n\n\n<p>Step 4: Choose the database you want to add the user to, from the&nbsp;<em>Database<\/em>&nbsp;section. Click the&nbsp;<strong>Submit<\/strong>&nbsp;button. <\/p>\n\n\n\n<p>That is all you need to know on how to create a PostgreSQL user, and add them to a PostgreSQL database. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we will show you how to create a PostgreSQL User, and then add them to a database. You must&nbsp;create a PostgreSQL database&nbsp;before attempting this guide. How to Create A PostgreSQL User Step 1: Login to cPanel. Step 2: Click the&nbsp;PostgreSQL Databases&nbsp;button in the&nbsp;Databases&nbsp;section. Step 3: In the&nbsp;Add New User&nbsp;section, enter a username, [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"footnotes":""},"doc_category":[],"doc_tag":[],"class_list":["post-6243","docs","type-docs","status-publish","hentry"],"year_month":"2026-11","word_count":197,"total_views":"83","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Patrick K","author_nicename":"patrick","author_url":"https:\/\/truehost.com\/support\/author\/patrick\/"},"doc_category_info":[],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Create a PostgreSQL User &amp; Adding them to the Database -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-postgresql-user-adding-them-to-the-database\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Create a PostgreSQL User &amp; Adding them to the Database -\" \/>\n<meta property=\"og:description\" content=\"In this guide, we will show you how to create a PostgreSQL User, and then add them to a database. You must&nbsp;create a PostgreSQL database&nbsp;before attempting this guide. How to Create A PostgreSQL User Step 1: Login to cPanel. Step 2: Click the&nbsp;PostgreSQL Databases&nbsp;button in the&nbsp;Databases&nbsp;section. Step 3: In the&nbsp;Add New User&nbsp;section, enter a username, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-postgresql-user-adding-them-to-the-database\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-07T13:03:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.co.ke\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-1-1024x150.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-create-a-postgresql-user-adding-them-to-the-database\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-create-a-postgresql-user-adding-them-to-the-database\\\/\",\"name\":\"How To Create a PostgreSQL User & Adding them to the Database -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-create-a-postgresql-user-adding-them-to-the-database\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-create-a-postgresql-user-adding-them-to-the-database\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.co.ke\\\/support\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/PostgreSQL-Database-1-1024x150.png\",\"datePublished\":\"2020-12-28T20:20:16+00:00\",\"dateModified\":\"2024-06-07T13:03:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-create-a-postgresql-user-adding-them-to-the-database\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-create-a-postgresql-user-adding-them-to-the-database\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-create-a-postgresql-user-adding-them-to-the-database\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.co.ke\\\/support\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/PostgreSQL-Database-1-1024x150.png\",\"contentUrl\":\"https:\\\/\\\/truehost.co.ke\\\/support\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/PostgreSQL-Database-1-1024x150.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-create-a-postgresql-user-adding-them-to-the-database\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Create a PostgreSQL User &#038; Adding them to the Database\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Create a PostgreSQL User & Adding them to the Database -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-postgresql-user-adding-them-to-the-database\/","og_locale":"en_US","og_type":"article","og_title":"How To Create a PostgreSQL User & Adding them to the Database -","og_description":"In this guide, we will show you how to create a PostgreSQL User, and then add them to a database. You must&nbsp;create a PostgreSQL database&nbsp;before attempting this guide. How to Create A PostgreSQL User Step 1: Login to cPanel. Step 2: Click the&nbsp;PostgreSQL Databases&nbsp;button in the&nbsp;Databases&nbsp;section. Step 3: In the&nbsp;Add New User&nbsp;section, enter a username, [&hellip;]","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-postgresql-user-adding-them-to-the-database\/","article_modified_time":"2024-06-07T13:03:13+00:00","og_image":[{"url":"https:\/\/truehost.co.ke\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-1-1024x150.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-postgresql-user-adding-them-to-the-database\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-postgresql-user-adding-them-to-the-database\/","name":"How To Create a PostgreSQL User & Adding them to the Database -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-postgresql-user-adding-them-to-the-database\/#primaryimage"},"image":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-postgresql-user-adding-them-to-the-database\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.co.ke\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-1-1024x150.png","datePublished":"2020-12-28T20:20:16+00:00","dateModified":"2024-06-07T13:03:13+00:00","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-postgresql-user-adding-them-to-the-database\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-postgresql-user-adding-them-to-the-database\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-postgresql-user-adding-them-to-the-database\/#primaryimage","url":"https:\/\/truehost.co.ke\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-1-1024x150.png","contentUrl":"https:\/\/truehost.co.ke\/support\/wp-content\/uploads\/2020\/12\/PostgreSQL-Database-1-1024x150.png"},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-create-a-postgresql-user-adding-them-to-the-database\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How To Create a PostgreSQL User &#038; Adding them to the Database"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/6243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=6243"}],"version-history":[{"count":3,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/6243\/revisions"}],"predecessor-version":[{"id":7446,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/6243\/revisions\/7446"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=6243"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=6243"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=6243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}