I'm about to set up mysql on a machine, and I know that in the past I've read about setting up specifically tweaked dedicated zfs datasets for it. I've never done that for mysql before, but I figure now if ever is the time to try it out. So, I searched for info about this to refresh my memory. Everything I found so far suggests setting up separate datasets for mysql's data and for its logs, with different tweaks on each (this matches with my memories of having read about it in the past). But it looks to me like both the data and the logs are (by default) in
Obviously I can set up individual datasets for each database, and mount them to subdirectories of
Are the logs in
/var/db/mysql
? The data being in a separate subdirectory per db, but the logs just being splayed out along with various other stuff in the main directory?Obviously I can set up individual datasets for each database, and mount them to subdirectories of
/var/db/mysql
, and could do that even while giving them different zfs tweaks than the apparent log directory, i.e. their parent path, i.e. /var/db/mysql
itself. But I feel like I might be misunderstanding. For one thing, there are a bunch of things directly in that directory other than logs. For another, the suggestions I've seen, if they say anything specific about the actual location of the logs at all, show them as being in their own dedicated directory.Are the logs in
/var/db/mysql
really "the" logs, i.e. those for which everything I've seen recommends setting up a different zfs dataset with different tweaks for?