烧瓶应用程序在大约一天之后失去了与MySQL数据库的连接
我正在使用Python烧瓶作为后端,将其作为GCP实例中的服务运行。一旦开始服务,它就能正常工作。但是经过一天的一天,我试图将其称为API损失与MySQL的联系,并显示以下
错误mysql.connector.errors.interfaceerror:2013:
我尝试使用pymysql和mysql.connector,但面临相同的错误。有什么办法解决这个问题吗?
I'm using python flask as a backend, running it as a service in the GCP instance. It is working correctly once started the service. But after a day when I try to make an API call it losses its connection with MySQL and shows the following
error mysql.connector.errors.InterfaceError: 2013:
I tried using pymysql and mysql.connector but facing the same error. Is there any way to solve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论