SHARE
TWEET

Untitled

a guest Mar 19th, 2017 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. conn = pymysql.connect(host=dbEndpoint, user=dbUser, password=dbPass, db=dbSchema)
  2. with conn.cursor(pymysql.cursors.DictCursor) as cursor:
  3.         try:
  4.             cursor.execute(statement)
  5.         except Exception as e:
  6.             return str(e)
  7.         conn.commit()
  8.         conn.close()
  9.         return cursor.fetchone()
  10.    
  11. MissingSchema: Invalid URL 'user': No schema supplied. Perhaps you meant http://user?
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top