I installed Postgres
and followed the instruction. I create a database and logged in by the master password but I don't find the database even the + mark is not shown in the servers. can anyone help, please?
Specify the “Port” as “5432”. Enter the name of the database in the “Database Maintenance” field. Enter your username as postgres and password (use the same password you used when previously configuring the server to accept remote connections) for the database. Click “Save” to apply the configuration.
Using a GUI Run pgAdmin. Right-click on the item Servers , select Create -> Server and provide the connection to your PostgreSQL instance set up in step 1. In the default PostgreSQL setup, the administrator user is postgres with an empty password. In the connection tab be sure to have the host set to localhost .
Select Database using pgAdmin You can also select the database and open SQL Query window in pgAdmin UI. Step 1: Select the database, by clicking on it. Now, click on the Tools drop down menu and click on Query Tool . Now, a new window appears with a connection make to the database you selected.
Step 1: Open the pgAdmin app and enter your password to connect to the database server. Step 2: Expand the Servers tree and then the Databases tree. The tree expands to show a list of all databases on the server. Click the Properties tab to see more information about each database.
Unlike in pgAdmin3, with pgAdmin4,
here you have to manually connect to a running postgres
server and
you already have your specific database (DB) created.
So to set the stage, make sure you have the postgres server is running, and that you have created that DB already too.
Notice (in the image) that I CREATE database XYZ
and GRANT all privileges to default user postgres
. (Note; to work properly with pgAdmin4, you have to create a user called postgres in order to be able to connect with and log in to pgAdmin4.)
Then here are some quick steps to follow:
Note:
Note:
Note:
If you followed the steps above properly, then you should see something like this after you save.
Here's a good guide from the pgAdmin documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With