We have moved mysql data directory to another disk, so now /var/lib/mysql
is just a mount point to another partition. We set the owner of the /var/lib/mysql
directory to mysql.mysql
.
But everytime we mount the partition, the ownership changes to root.root
. Because of this, we couldn't create additional MySQL database.
Our fstab entry:
/dev/mapper/db-db /var/lib/mysql ext3 relatime 0 2
How to change the owner of mount point to user other than root?