Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import psycopg2
  2.  
  3. try:
  4. conn = psycopg2.connect("dbname='lpdstrtn' " "user='lpdstrtn' " "host='dumbo.db.elephantsql.com' " "password='OQBOtTdWyf5xbdDqwGFyi_T_rQ2KcjNw'")
  5. except:
  6. print("I am unable to connect to the database.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement