How to verify data integrity of data folders after data recovery in MySQL and PostgreSQL? I wonder if there is a way to verify data integrity of data folders from a data-recovered hard disk, both MySQL and PostgreSQL?
As far as I know, the only way in PostgreSQL is to run something like

pg_dumpall &gt;/dev/null


which will scream if it encounters table corruption.

However, that won't test index integrity. For that, PostgreSQL v11 has the amcheck extension.