I encountered a weird situation and I need your help. I am developing a Restful API using the Python 3.7 with Flask and SQLAlchemy. The application is hosted using AWS EC2 and database in AWS RDS (MySQL).
I also have an application hosted using Raspberry PI which will call the API and communicate with the EC2 Server.
Sometimes, I encountered a long transaction time between Raspberry and my API server, most of the time, I will kill the process in Raspberry PI and try to restart the process again and debug to see where goes wrong. However, when I restart the process I will see an error message related to my database. Then when I check my database, I notice all my tables are gone, nothing left. I am pretty sure that no drop tables in my codes and I have no idea why this occurred.
Is there anyone encountered the same situation? If yes, please tell me the root cause and the solution for this issue.
By the way, there is no error message recorded in MySQL log nor my RestAPI.
Thank you and good day.