I am trying to start mysql and getting error:
Can't create test file /var/lib/mysql/$HOSTNAME.lower-test
The directory does not exist.
But in my.cnf
, I specified different directory like this:
datadir=$SOME_DIR
and this directory has proper write permissions.
Why does it still look for var/lib/mysql
?