[Fix] ERROR 1018 (HY000): Can’t read dir of ‘.’ (errno: 13)

This error arised due to accidental changes in permission and ownership for files on apache server. Ownership changes are varies case by case. But to fix this you have to change owner and group for MySQL folder using below command

chown -R mysql:mysql /var/lib/mysql/

Optionally, you can change permission to 755 using below command

chmod -R 755 /var/lib/mysql/

After this restart the MySQL using

/etc/init.d/mysql restart

Leave a Reply

Your email address will not be published. Required fields are marked *

Show Buttons
Hide Buttons
%d bloggers like this: