0
I am trying to install and configure Postgresql on my machine, however I am having some doubts and some problems.
I followed the following steps of the installation tutorial on official website. I am using Linux Mint Cinnamon 18.2.
Here are the settings of my machine.
After installation, I followed this tutorial.
The first problem arose when typing the command
su - postgres
, because I was asked for a password, which was not the password of my current user and I have no idea what the password is.
I looked for solutions on the internet and saw this reply, then tried the command sudo su - postgres
, I entered my password and managed to change user.
I managed to execute all the next commands except the last one (DROP TABLE test.test;
), which resulted in the following error ERROR: must be owner of relation test
I also found strange the fact that even after executing the commands to provide the privileges to my newly created user, after executing the command \du
my user privilege list remained empty.
List of roles
Role name | Attributes | Member of
-----------+------------------------------------------------------------+-----------
michael | | {}
postgres | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
What am I doing wrong?
GRANT ALL PRIVILEGES ON postgres. * TO michael@localhost IDENTIFIED BY '<password>'; syntax error at or near "TO"
– Michael Pacheco
It worked perfectly! Thank you very much!
– Michael Pacheco