I'm new to SQL and I'm following a tutorial on how to create a database. The new database I'm creating is called sample_db.
postgres=# create database sample_db
postgres=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
sample_db | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
(4 rows)
Everything looks great so far. I'm using Datagrip to visualise the database. However when I test the connection I get an error. (See image below):
The error message says "the server requested password-based authentication but no password was provided". However I didn't make a password and the tutorial I followed didn't either.
