Hello,
Today, recently, I created a database called mybusinessdb, but, I am not successful, as I had in my local development environment.
It is the following when using the list of all companies, I have a CRUD, I can register branches related to company X, the operation is correct, until now. The problem is that if I want to remove this company X, my page is not successfully redirected. Send me this warning on the blank page:
500 Internal Server Error <br> The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
So, I did a test, I entered my database console, I did this command:
mysql> DELETE FROM company WHERE id = 1;
It took a long time to answer, and the answer was mentioned in the title:
ERROR 1205 (HY000): Lock wait timeout exceeded
Guys, what should I do?
I don't understand SQL very much, it's my first time using an app on a cloud hosting server, I was thinking of a way to restart my database via console using this command:
service mysql restart
Also, I was unsuccessful.
Can you help me?