I typed psql and I get this:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
con
quick howto on debian to remotely access postgres database on server from the psql client: (the changed config is doc'd in the files):
/etc/postgresql/10/main/postgresql.conf with listen_address */etc/postgresql/10/main/pg_hba.conf and add line in the end with host all all 0/0 md5postgres=# CREATE ROLE remoteuser LOGIN WITH PASSWORD 'foo'sudo /etc/init.d/postgresql restart changes take effect
login from clientside with psql --host=ipofserver --port=5432 --username=remoteuser --password --dbname=mydb