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
which will scream if it encounters table corruption.
However, that won't test index integrity. For that, PostgreSQL v11 has the amcheck extension.