ERROR 13 (HY000): Can’t get stat of ‘./db_name’ (OS errno 13 – Permission denied)
This happens due to the permission change at mysql directory which if we can set back to default would be fixed.
Go to your mysql directory and check if owner/group are different than mysql:
cd /var/lib/mysql/
Then change back to owner to mysql
sudo chown mysql:mysql /var/lib/mysql/ -R
Check now, and you should able to perform your mysql operations correctly.
Updated : 27 Mar 24