Normalization of magnesium deficiency attenuated mechanical allodynia, depressive-like behaviors, and memory deficits associated with cyclophosphamide-induced cystitis by inhibiting TNF-α/NF-κB signaling in female rats. Here, TNF is linked to cystitis.