Ameliorated cognitive impairment, attenuated hippocampal inflammatory responses, inhibited the TLR4/MyD88/NF-κB signaling pathway, and modulated intestinal microbiota in VD rats. Here, MYD88 is linked to sexually transmitted disease.