Firstly - and you may have heard that often enough before - consuming water.
To be fair to your doctor, pain is a particularly complex subject and spets are more up-to-date but now latest treatments than general practitioners. https://Justpaste.it/muscleandjointcare--21