

He wrote more than 7k+ posts and helped numerous readers to master IT topics. Vivek Gite is the founder of nixCraft, the oldest running blog about Linux and open source. => How do I add a user to PostgreSQL database server? -d sales : Specifies the name of the database (sales) to connect to.You must have account and permission to connect as vivek user. -U vivek : Connect to the database as the vivek username instead of the default.Browser section expands the icon > in front of Servers (1), Right-click on postgres database from Databases section under Servers (1) and click or select Query Tool option.

Open pgAdmin and enter a password, if it asks for.

By default, the PostgreSQL server only allows connections to the database from the local machine or localhost. If it is running and you get above error, you need to add enable TCP/IP support. First make sure PostgreSQL server has been started to remote server. How do I fix this problem? I am using CentOS 4.x version.Ī. Is the server running on host and accepting Psql: could not connect to server: Connection refused
