aboutsummaryrefslogtreecommitdiff
path: root/content/blog/miscellaneous/my-postgresql-role-cannot-login.md
blob: 0b4460e1bc25417aaa074acdbe034dfa962d5cc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
title: "Cannot login role into postgresql"
date: 2015-11-24
description: How to fix a "Cannot login role" error on postgresql
tags:
  - PostgreSQL
---

## The problem

Login is a permission on postgresql, that sometimes is not obvious it can cause issues.

## The solution

Simply log in as postgres or another administrator account and run :
```sh
ALTER ROLE "user" LOGIN;
```