It is real but the solution is in your mind. Our minds could cause real physical changes in our bodies and our physical beings would affect our minds too. The pain is not imaginary. When our minds change that would bring physical changes including disappearance of pain.