ensuring mysql has access to its data directory