Horje
psql fatal database does not exist Code Example
psql fatal database does not exist
# So you do not have to create a database with your role name

psql -U Username DatabaseName 
psql database does not exist
It appears that your package manager failed to create the database named $user for you. The reason that

psql -d template1
works for you is that template1 is a database created by postgres itself, and is present on all installations. You are apparently able to log in to template1, so you must have some rights assigned to you by the database. Try this at a shell prompt:

createdb
and then see if you can log in again with

psql -h localhost
fatal database postgres does not exist
psql -d template1




Sql

Related
mysql add column Code Example mysql add column Code Example
insert into table from another table mysql Code Example insert into table from another table mysql Code Example
sql server for loop Code Example sql server for loop Code Example
sql change default collation to utf8 Code Example sql change default collation to utf8 Code Example
sQL query to get all table records count from a database Code Example sQL query to get all table records count from a database Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6