I'm trying to follow the tutorial here: https://gophercasts.io/lessons/4-postgres-basics but I'm having problems with the way in which the user is set up in Windows 8.1 (64-bit).
The tutorial has a data.sql which is a script to create some seed data for the purposes of the tutorial but when I try and run it through the command line I get this error:
createdb: could not connect to database template1: FATAL: password authentication failed for user "user"
The command I ran was :
C:\code\gocode>createdb lesson4
My Windows account is just called 'user'. Also when I open pgadmin3 the only Postgresql account I see is called 'postgres'.
How do I set up an account so I can run commands from the command-line?
(Apologies in advance if this is the incorrect forum, I wasn't sure if I should post it here, or Stackoverflow or DBA Stackexchange, please do not punish me with downvotes, just let me know if I should get it moved elsewhere)