This happens because of a permissions or ownership issue.
Generally /var/lib/mysql should be all owned by mysql.mysql (check that).
To fix it use chown -R mysql.mysql /var/lib/mysql
Also make sure the files are at least readable and writable by mysql (eg. 700).
mysql, datastore, solutionthis, permissions, ownership, generally, var, lib, chown, readable, writable, eg,