How to set
datadir to different values based on the hostname in
my.cnf? I want to use the same
my.cnf file on a Linux machine and a Mac OS X machine where the
datadir should have different values.
A simple solution for that would be to keep the
On you linux host, you would:
Add permissions to this folder for mysql user: