Hello folks,
Following this article from Python code: https://help.pythonanywhere.com/pages/AccessingMySQLFromOutsidePythonAnywhere/
No matter what I've tried so far, I keep getting the message:
pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query ([Errno 54] Connection reset by peer)')
When just creating the connection, I have no errors, it's only when I make a query (something simple like select * from table). I've increased timeouts (which I wasn't getting a timeout before, but to be safe), tried different queries. Any ideas?
I'm thinking it has something to do with the connection itself, rather a specific query. Same code inside pythonanywhere works fine once I remove the tunnel.