MySQL: UMASK and UMASK_DIR ignored under Debian

If you want to change the permissions of MySQL created files, you need to use environment variables as explained in the documentation.

The regular way is to add this to the beginning of the init.d script:

However the Debian init.d script provided by MySQL starts MySQL in a separated shell environment and will therefore ignore your settings.

You need to edit the command in the start section of the script to include the variables :

Leave a Reply

Your email address will not be published. Required fields are marked *