Not able to update dbpath in ubuntu

How to update dbpath in ubuntu, simple way. I follow this link but not worked for me. Please help me with this.

What error are you getting?
Does the new dirpath exist
Does it have required permissions/ownership