Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import psycopg2
- try:
- conn = psycopg2.connect("dbname='lpdstrtn' " "user='lpdstrtn' " "host='dumbo.db.elephantsql.com' " "password='OQBOtTdWyf5xbdDqwGFyi_T_rQ2KcjNw'")
- except:
- print("I am unable to connect to the database.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement