I'm new to PostgreSQL and I'm figuring out on how to create the database in pgadmin
. My OS is Ubuntu 20.04.
The snap of my pgadmin panel is here
Update: So, if anybody having the same doubt, here the steps :
Go to your terminal and do sudo -u postgres psql
to enter into the PostgreSQL command line.
Then create the database:
CREATE DATABASE databasename;
Create the user:
CREATE USER username WITH PASSWORD 'password';
Finally grant permissions and connect to the database with the new user just created above:
GRANT ALL PRIVILEGES ON DATABASE databasename TO username;
After this, go to your pgAdmin
and then create the new server. Give a name to your server. Go to the Connection
tab, and enter
localhost
as your hostname. Edit the username and password which you
have created above in command line and save the server.
Done.
This seems to be a new install of PgAdmin. Your first task then is to define the connections to your database. <br./>