Forums

My frontend keeps losing connection to database

Hello and happy new year !

I'm posting here today because my frontend is experiencing lots of connection issues with database. The error output I'm getting:

Lost connection to MySQL server during query

I've extended connection timeout to 8 secs with

app.config['SQLALCHEMY_ENGINE_OPTIONS'] = {'connect_args': {'connect_timeout': 8000}}

It didn't help.

Since PA is running MySQL server for me how this could be resolved ?

See https://help.pythonanywhere.com/pages/UsingSQLAlchemywithMySQL/

Thank you, Glenn.