Answer the question
In order to leave comments, you need to log in
Why are records randomly deleted from the MySQL database?
Hello.
The site has a MySQL database, type: MyISAM, database size: 25.7 GB, total rows: 133 million.
Records are spontaneously deleted from the database, and from different tables. Today I received a complaint from a user that his internal balance on my site was reset to zero. I checked it - it turned out that his account was deleted from users, while the data that relates to this user from other tables was preserved. Earlier there were cases when records from other bases were deleted. I won't say that the problem is massive, but even 20 out of 500,000 deleted records matter.
What could be the reason and how to get rid of the problem? Logging of deletion requests was done, there is nothing there.
Answer the question
In order to leave comments, you need to log in
MyISAM
This is a ternary comparison operator, its analogue can be if. What you wrote (in the context of a function) is similar
if($a > $b) {
return 1;
} else {
return -1;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question