February 2018
Intermediate to advanced
510 pages
16h 10m
English
If the UMASK or UMASK_DIR environment variables are set incorrectly upon server startup, we may have problems with file permissions. The MySQL server may issue following error message upon table creation:
ERROR: Can't find file: 'path/with/file_name' (Errcode: 13)
The default values for UMASK and UMASK_DIR system variables are 0640 and 0750, respectively. If the value of these environment variables starts with zero, it indicates to the MySQL server that the values are in octal. For example, the default values 0640 and 0750 in octal are equivalent to 415 and 488, respectively, in decimal.
In order to change the default UMASK value, we should start mysqld_safe, as follows:
> UMASK=384 # = 600 in octal > export
Read now
Unlock full access