Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. CREATE DATABASE myProject;
  2. CREATE USER myUser WITH PASSWORD '1234';
  3.  
  4. #connect through python
  5. import psycopg2
  6. psycopg2.connect("dbname=myProject user=myUser host=localhost password=1234 port=5432")
  7.  
  8. Traceback (most recent call last):
  9. File "<stdin>", line 1, in <module>
  10. File "/data/project/venv/lib/python3.6/site-packages/psycopg2/__init__.py", line 130, in connect
  11. conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
  12. psycopg2.OperationalError: FATAL: password authentication failed for user "myUser"
  13. FATAL: password authentication failed for user "myUser"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement