Linked Questions
17 questions linked to/from psql: FATAL: database "<user>" does not exist
3
votes
1
answer
24k
views
Port 5432 failed: FATAL: database "xxx" does not exist. in PostgreSQL database [duplicate]
I am running a PostgreSQL 14 on my mac, tried to reinstall it since I forgot the password.
(base) % brew uninstall --force postgresql@14
(base) % brew cleanup -s
(base) % brew install ...
3
votes
0
answers
2k
views
Problem with Docker Compose - FATAL: database "root" does not exist (PostgresSQL) [duplicate]
I trying to create a Postgres Database with Docker Compose, but i'm not understanding why the PSQL client is telling me that a database called root doesn't exists.
That's the docker-compose.yml
...
0
votes
0
answers
120
views
postgresql permissions denied [duplicate]
I have just finished install postgres from the way that the postgresql website says for ubuntu20.04
when I run psql I get
psql: error: FATAL: database "myusername" does not exist
when I ...
0
votes
1
answer
102
views
psql -U <user> does not work after created the role in pgadmin [duplicate]
I have created a new role "joe" with pgadmin 4, it has a password, createdb rights, but not superuser privileges.
On Windows, using the terminal from visual studio code, I try to login as ...
790
votes
36
answers
916k
views
psql: FATAL: role "postgres" does not exist
I'm a postgres novice.
I installed the postgres.app for mac. I was playing around with the psql commands and I accidentally dropped the postgres database. I don't know what was in it.
I'm currently ...
136
votes
30
answers
317k
views
psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or directory
Not really sure what caused this but most likely exiting the terminal while my rails server which was connected to PostgreSQL database was closed (not a good practice I know but lesson learned!)
I've ...
151
votes
23
answers
258k
views
PostgreSQL error 'Could not connect to server: No such file or directory'
Like some others I am getting this error when I run rake db:migrate in my project or even try most database tasks for my Ruby on Rails 3.2 applications.
PGError (could not connect to server: No such ...
129
votes
11
answers
181k
views
Postgres user does not exist?
I have just installed Postgres and have been tinkering with it and various configurations for 1-2 hours.
I am stuck on being unable to change to the postgres-user
$ su - postgres yields the ...
12
votes
2
answers
5k
views
Error when trying to create database - Ecto - Phoenix
I'm getting an error when trying to create a database. I have postgres installed and I've already made a few test projects successfully. And, I've not seen this error. Any help would be great:
ERROR:
...
3
votes
3
answers
3k
views
Heroku/Rails: PG:: Undefined Table: error "[tablename]" does not exist on heroku rails migration
My app works fine in production, but when I move to production and run 'heroku run rake db:migrate', I get the following error:
PG::UndefinedTable: ERROR: table "applications" does not exist
...
2
votes
2
answers
8k
views
Where should I `initdb` on a first postgres install?
Setting up a development environment on a new machine, brew installed postgres. Now I need to initdb for the first time, which directory should i specify for this command?
8
votes
0
answers
10k
views
Getting Postgresql Running In Mac: Database "postgres" does not exist [closed]
I followed these instructions to get postgresql running on mac. Note that I am using Homebrew to install, and the current version installable through brew is 9.2.1, so I changed the version numbers in ...
4
votes
1
answer
5k
views
Postgresql server is running on local machine but psql can not connect
After doing brew install postgres:
brew install postgres
brew link --overwrite postgresql
Postgres is already running:
/~ $brew services start postgresql
Service `postgresql` already started, use `...
2
votes
3
answers
3k
views
postgres superuser is not created upon installation
Totally new to postgresql; just had it installed (version 14.1) for the first time via brew on m1 Mac. Installation works fine, but I thought the installation process shall also create a superuser ...
3
votes
1
answer
9k
views
FATAL: database <name> does not exist
I am trying to create my own Spring Boot application with a POSTGRESQL database. I have started using docker to mount the database, with a docker-compose whose values are as follows:
version: "...