3
Here in the company there is a structure with at least 20 servers, each server has at least 20 databases, and each database must have between 40 to 50 tables. For such a structure, rotate the command check table 'nome_da_tabela';
in all tables, even if by code is very time consuming.
Currently there is a code in PHP that runs through all the servers and runs the command already mentioned above, but as I said is very time consuming, so I wonder if when a table Crasha in Mysql, whether this generates any log within Mysql itself that can be queried instead of entering table by table and checking?
I ask this, because I have read somewhere that in the base information_schema in some table is stored this information, but I have not found anything that explains me clearly.
Are you looking for the checksum which is the table control sum report which is one of the tests done
CHECK TABLE
to determine whether a table is damaged or not. The checksum works as follows, every time an information is inserted or modified in a row the DB sums all the bytes of that line and stores the result next to the line. TheCHECK TABLE
orCHECKSUM TABLE
simply redoes this sum line by line, in the checked table, and compares with the stored value if the difference accuses the error– Augusto Vasques
before posting an answer, you already used the command
SHOW TABLE STATUS WHERE COMMENT LIKE '%crash%'
to see if this result helps? Hence it is possible to insert into a table and use this data– Ricardo Pontual