{"id":8514,"date":"2023-02-02T12:30:18","date_gmt":"2023-02-02T15:30:18","guid":{"rendered":"https:\/\/categoriaoutros.com.br\/?p=8514"},"modified":"2023-02-02T12:31:35","modified_gmt":"2023-02-02T15:31:35","slug":"postgresql-erro-psql-error-fatal-role-usuario-does-not-exist","status":"publish","type":"post","link":"https:\/\/categoriaoutros.com.br\/?p=8514","title":{"rendered":"PostgreSQL: Erro &#8220;psql: error: FATAL:  role &#8220;usuario&#8221; does not exist&#8221;"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Causa do Erro &#8220;psql: error: FATAL:  role &#8220;usuario&#8221; does not exist&#8221; no PostgreSQL<\/h2>\n\n\n\n<p>Veja o erro completo:<\/p>\n\n\n\n<pre>[root@server ~]# psql\npsql: error: FATAL:  role &quot;root&quot; does not exist\n[root@cartorioMatrix ~]# sudo -u postgres psql \ncould not change directory to &quot;\/root&quot;: Permission denied\npsql (12.13)\nType &quot;help&quot; for help.<\/pre>\n\n\n\n<p>Esse erro ocorre quando tentamos usar o terminal psql do postgres mas o usu\u00e1rio n\u00e3o est\u00e1 cadastrado ou adicionado ao banco de dados. <\/p>\n\n\n\n<p>No exemplo acima, estava logado com usu\u00e1rio root e essa conta n\u00e3o existe dentro do postgreSQL. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solu\u00e7\u00e3o para o Erro &#8220;psql: error: FATAL:  role &#8220;usuario&#8221; does not exist&#8221; no PostgreSQL<\/h2>\n\n\n\n<p>A conta padr\u00e3o, criada no momento da instala\u00e7\u00e3o do PostgreSQL \u00e9 a conta <strong>postgres<\/strong>. Ela n\u00e3o tem senha. Se n\u00e3o tiver outra conta poder\u00e1 us\u00e1-la para acessar o terminal psql da seguinte forma:<\/p>\n\n\n\n<pre>sudo -u postgres psql<\/pre>\n\n\n\n<p>ou assim<\/p>\n\n\n\n<pre>su postgres<\/pre>\n\n\n\n<pre> psql<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Causa do Erro &#8220;psql: error: FATAL: role &#8220;usuario&#8221; does not exist&#8221; no PostgreSQL Veja o erro completo: [root@server ~]# psql psql: error: FATAL: role &quot;root&quot; does not exist [root@cartorioMatrix ~]# sudo -u postgres psql could not change directory to &quot;\/root&quot;: Permission denied psql (12.13) Type &quot;help&quot; for help. Esse erro ocorre quando tentamos usar o&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/categoriaoutros.com.br\/?p=8514\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;PostgreSQL: Erro &#8220;psql: error: FATAL:  role &#8220;usuario&#8221; does not exist&#8221;&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1331,16],"tags":[3621,3620,3619],"class_list":["post-8514","post","type-post","status-publish","format-standard","hentry","category-banco-de-dados","category-informatica-dicas","tag-psql","tag-su-postgres","tag-sudo-u-postgres-psql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PostgreSQL: Erro &quot;psql: error: FATAL: role &quot;usuario&quot; does not exist&quot; - Categoria Outros<\/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:\/\/categoriaoutros.com.br\/?p=8514\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PostgreSQL: Erro &quot;psql: error: FATAL: role &quot;usuario&quot; does not exist&quot; - Categoria Outros\" \/>\n<meta property=\"og:description\" content=\"Causa do Erro &#8220;psql: error: FATAL: role &#8220;usuario&#8221; does not exist&#8221; no PostgreSQL Veja o erro completo: [root@server ~]# psql psql: error: FATAL: role &quot;root&quot; does not exist [root@cartorioMatrix ~]# sudo -u postgres psql could not change directory to &quot;\/root&quot;: Permission denied psql (12.13) Type &quot;help&quot; for help. Esse erro ocorre quando tentamos usar o...Read More &ldquo;PostgreSQL: Erro &#8220;psql: error: FATAL: role &#8220;usuario&#8221; does not exist&#8221;&rdquo; &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/categoriaoutros.com.br\/?p=8514\" \/>\n<meta property=\"og:site_name\" content=\"Categoria Outros\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/categoriaoutros\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-02T15:30:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-02T15:31:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/pinguim-paginas-padrao.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1022\" \/>\n\t<meta property=\"og:image:height\" content=\"722\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Categoria: Outros\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CategoriaOutros\" \/>\n<meta name=\"twitter:site\" content=\"@CategoriaOutros\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Categoria: Outros\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=8514#article\",\"isPartOf\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=8514\"},\"author\":{\"name\":\"Categoria: Outros\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/ba0f432708449436912bd6736864bb40\"},\"headline\":\"PostgreSQL: Erro &#8220;psql: error: FATAL: role &#8220;usuario&#8221; does not exist&#8221;\",\"datePublished\":\"2023-02-02T15:30:18+00:00\",\"dateModified\":\"2023-02-02T15:31:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=8514\"},\"wordCount\":124,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/#organization\"},\"keywords\":[\"psql\",\"su postgres\",\"sudo -u postgres psql\"],\"articleSection\":[\"Banco de Dados\",\"Inform\u00e1tica\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/categoriaoutros.com.br\/?p=8514#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=8514\",\"url\":\"https:\/\/categoriaoutros.com.br\/?p=8514\",\"name\":\"PostgreSQL: Erro \\\"psql: error: FATAL: role \\\"usuario\\\" does not exist\\\" - Categoria Outros\",\"isPartOf\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/#website\"},\"datePublished\":\"2023-02-02T15:30:18+00:00\",\"dateModified\":\"2023-02-02T15:31:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=8514#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/categoriaoutros.com.br\/?p=8514\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/categoriaoutros.com.br\/?p=8514#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/categoriaoutros.com.br\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PostgreSQL: Erro &#8220;psql: error: FATAL: role &#8220;usuario&#8221; does not exist&#8221;\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#website\",\"url\":\"https:\/\/categoriaoutros.com.br\/\",\"name\":\"Categoria Outros\",\"description\":\"Assuntos Diversos\",\"publisher\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/categoriaoutros.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#organization\",\"name\":\"Categoria Outros\",\"alternateName\":\"Categoria Outros\",\"url\":\"https:\/\/categoriaoutros.com.br\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/categoriaoutros-logo.jpg\",\"contentUrl\":\"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/categoriaoutros-logo.jpg\",\"width\":400,\"height\":400,\"caption\":\"Categoria Outros\"},\"image\":{\"@id\":\"https:\/\/categoriaoutros.com.br\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/categoriaoutros\",\"https:\/\/twitter.com\/CategoriaOutros\",\"https:\/\/br.pinterest.com\/CategoriaOutros\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/ba0f432708449436912bd6736864bb40\",\"name\":\"Categoria: Outros\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ed97775f0ab50750ed638ed3417ea85e19ced2c648da167a108e393ae5fd9e33?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ed97775f0ab50750ed638ed3417ea85e19ced2c648da167a108e393ae5fd9e33?s=96&d=mm&r=g\",\"caption\":\"Categoria: Outros\"},\"sameAs\":[\"http:\/\/categoriaoutros.com.br\"],\"url\":\"https:\/\/categoriaoutros.com.br\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PostgreSQL: Erro \"psql: error: FATAL: role \"usuario\" does not exist\" - Categoria Outros","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:\/\/categoriaoutros.com.br\/?p=8514","og_locale":"pt_BR","og_type":"article","og_title":"PostgreSQL: Erro \"psql: error: FATAL: role \"usuario\" does not exist\" - Categoria Outros","og_description":"Causa do Erro &#8220;psql: error: FATAL: role &#8220;usuario&#8221; does not exist&#8221; no PostgreSQL Veja o erro completo: [root@server ~]# psql psql: error: FATAL: role &quot;root&quot; does not exist [root@cartorioMatrix ~]# sudo -u postgres psql could not change directory to &quot;\/root&quot;: Permission denied psql (12.13) Type &quot;help&quot; for help. Esse erro ocorre quando tentamos usar o...Read More &ldquo;PostgreSQL: Erro &#8220;psql: error: FATAL: role &#8220;usuario&#8221; does not exist&#8221;&rdquo; &raquo;","og_url":"https:\/\/categoriaoutros.com.br\/?p=8514","og_site_name":"Categoria Outros","article_publisher":"https:\/\/www.facebook.com\/categoriaoutros","article_published_time":"2023-02-02T15:30:18+00:00","article_modified_time":"2023-02-02T15:31:35+00:00","og_image":[{"width":1022,"height":722,"url":"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/pinguim-paginas-padrao.webp","type":"image\/webp"}],"author":"Categoria: Outros","twitter_card":"summary_large_image","twitter_creator":"@CategoriaOutros","twitter_site":"@CategoriaOutros","twitter_misc":{"Escrito por":"Categoria: Outros","Est. tempo de leitura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/categoriaoutros.com.br\/?p=8514#article","isPartOf":{"@id":"https:\/\/categoriaoutros.com.br\/?p=8514"},"author":{"name":"Categoria: Outros","@id":"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/ba0f432708449436912bd6736864bb40"},"headline":"PostgreSQL: Erro &#8220;psql: error: FATAL: role &#8220;usuario&#8221; does not exist&#8221;","datePublished":"2023-02-02T15:30:18+00:00","dateModified":"2023-02-02T15:31:35+00:00","mainEntityOfPage":{"@id":"https:\/\/categoriaoutros.com.br\/?p=8514"},"wordCount":124,"commentCount":0,"publisher":{"@id":"https:\/\/categoriaoutros.com.br\/#organization"},"keywords":["psql","su postgres","sudo -u postgres psql"],"articleSection":["Banco de Dados","Inform\u00e1tica"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/categoriaoutros.com.br\/?p=8514#respond"]}]},{"@type":"WebPage","@id":"https:\/\/categoriaoutros.com.br\/?p=8514","url":"https:\/\/categoriaoutros.com.br\/?p=8514","name":"PostgreSQL: Erro \"psql: error: FATAL: role \"usuario\" does not exist\" - Categoria Outros","isPartOf":{"@id":"https:\/\/categoriaoutros.com.br\/#website"},"datePublished":"2023-02-02T15:30:18+00:00","dateModified":"2023-02-02T15:31:35+00:00","breadcrumb":{"@id":"https:\/\/categoriaoutros.com.br\/?p=8514#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/categoriaoutros.com.br\/?p=8514"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/categoriaoutros.com.br\/?p=8514#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/categoriaoutros.com.br\/"},{"@type":"ListItem","position":2,"name":"PostgreSQL: Erro &#8220;psql: error: FATAL: role &#8220;usuario&#8221; does not exist&#8221;"}]},{"@type":"WebSite","@id":"https:\/\/categoriaoutros.com.br\/#website","url":"https:\/\/categoriaoutros.com.br\/","name":"Categoria Outros","description":"Assuntos Diversos","publisher":{"@id":"https:\/\/categoriaoutros.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/categoriaoutros.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/categoriaoutros.com.br\/#organization","name":"Categoria Outros","alternateName":"Categoria Outros","url":"https:\/\/categoriaoutros.com.br\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/categoriaoutros.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/categoriaoutros-logo.jpg","contentUrl":"https:\/\/categoriaoutros.com.br\/wp-content\/uploads\/2023\/08\/categoriaoutros-logo.jpg","width":400,"height":400,"caption":"Categoria Outros"},"image":{"@id":"https:\/\/categoriaoutros.com.br\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/categoriaoutros","https:\/\/twitter.com\/CategoriaOutros","https:\/\/br.pinterest.com\/CategoriaOutros\/"]},{"@type":"Person","@id":"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/ba0f432708449436912bd6736864bb40","name":"Categoria: Outros","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/categoriaoutros.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ed97775f0ab50750ed638ed3417ea85e19ced2c648da167a108e393ae5fd9e33?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed97775f0ab50750ed638ed3417ea85e19ced2c648da167a108e393ae5fd9e33?s=96&d=mm&r=g","caption":"Categoria: Outros"},"sameAs":["http:\/\/categoriaoutros.com.br"],"url":"https:\/\/categoriaoutros.com.br\/?author=1"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/posts\/8514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8514"}],"version-history":[{"count":1,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/posts\/8514\/revisions"}],"predecessor-version":[{"id":8515,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=\/wp\/v2\/posts\/8514\/revisions\/8515"}],"wp:attachment":[{"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/categoriaoutros.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}