Hi I'm getting the following and the other solutions I've seen for this don't seem to be working... Within the ubuntu server terminal (a virtualbox vm): Error FATAL: Peer authentication failed for user "a4apps"
My Ubuntu server os user name is the same. I have restarted my postgres. I have tried changing my pg_hba.conf file by: changing the IPv4 host method from md5 to "trust" and by adding a line under it "host all all myubuntuserverip/32 trust"
I am trying to access it via a python script. I am using psycopg
con = psycopg2.connect(database='fieldtest2', user='a4apps')
I created the user: sudo -u postgres create user a4apps superuser no, create databases yes, create other users no. Created database: sudo -u postgres createdb fieldtest2 -O a4apps
I was following this tutorial: here
I'm running out of ideas. Any guidance would be appreciated. Thanks Mike