I recently discovered that in order to tune mysql to run properly on zfs i should set the recordsize to match the block size in mysql.
My question is, can i safely stop the database server, copy the data out of /var/db/mysql to another location, then do
then copy the data back in?
i'm guessing as long as the permissions are set correctly this will work, right?
(of course i'd use the actual database names instead of database1, database2)
My question is, can i safely stop the database server, copy the data out of /var/db/mysql to another location, then do
Code:
zfs create tank/var/db/mysql
zfs set recordsize 8k tank/var/db/mysql
zfs set compression=on tank/var/db/mysql
zfs create tank/var/db/mysql/DATABASE1
zfs create tank/var/db/mysql/DATABASE2
zfs create tank/var/db/mysql/DATABASE3
i'm guessing as long as the permissions are set correctly this will work, right?
(of course i'd use the actual database names instead of database1, database2)