SyntaxFix
Write A Post
Hire A Developer
Questions
On Windows:
Assign value to PGPASSWORD: C:\>set PGPASSWORD=pass
C:\>set PGPASSWORD=pass
Run command: C:\>psql -d database -U user
C:\>psql -d database -U user
Ready
Or in one line,
set PGPASSWORD=pass&& psql -d database -U user
Note the lack of space before the && !