Moving the data directory is not extremely easy, but there is a detailed guide for that:
You need to follow solution 1! Solution 2 is not the way to go, because it won’t change anything for you and you would still run into your current issue.
While solution one can be risky, please follow this guide very carefully