Taking magnesium may cause loose bowels at first but this goes away after a few days. Magnesium is an excellent remedy for many types of muscle aches and especially charlie horses. We use a brand called Calm regularly.
A friend of mine, 40-something, takes Doan’s Pills for backache. I think it’s magnesium salicylate. Says it’s 1000x more effective than everything else she’s tried.