Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pymysql
- # Connect to the database
- connection = pymysql.connect(host='127.0.0.1',
- user='<username>',
- password='<password>',
- db='Puppies',
- port=8888)
- print("hello")
- CR.CR_SERVER_LOST, "Lost connection to MySQL server during query")
- pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query')
Add Comment
Please, Sign In to add comment