Cannot create schema : permission issue I am trying to create a schema.

But I am getting this error : 

mysql&gt; create schema myBase;
ERROR 13 (HY000): Can't get stat of './myBase' (Errcode: 13 -
Permission denied)


When I do a ls -l on /var/lib I am getting : 

drw-rw-rw- 8 mysql         mysql         4096 juin   6 14:41 mysql


I don't know what is wrong here.
I anyone knows..
You also need to have execute otherwise you cannot "CD" into the directory nor MySQL will be able to.

Run this to fix directories recursively:

for dir in $(find /var/lib/mysql -type d); do chmod u+x $dir; done