make sure mysql.log exists before setting permissions