Diabetes mellitus causes brain structure changes and cognitive decline, and it has been estimated that diabetes doubles the risk for dementia. Until now, the pathogenic mechanism of diabetes-associated cognitive decline (DACD) has remained unclear. Using metabolomics, we show that lactate levels increased over time in the hippocampus of rats with streptozotocin-induced diabetes, as compared with age-matched control rats. Additionally, mRNA levels, protein levels, and enzymatic activity of lactate dehydrogenase-A (LDH-A) were significantly up-regulated, suggesting increased glycolysis activity. Importantly, by specifically blocking the glycolysis pathway through an LDH-A inhibitor, chronic diabetes-induced memory impairment was prevented. Analyzing the underlying mechanism, we show that the expression levels of cAMP-dependent protein kinase and of phosphorylated transcription factor cAMP response element-binding proteins were decreased in 12-week diabetic rats. We suggest that G protein-coupled receptor 81 mediates cognitive decline in the diabetic rat. In this study, we report that progressively increasing lactate levels is an important pathogenic factor in DACD, directly linking diabetes to cognitive dysfunction. LDH-A may be considered as a potential target for alleviating or treating DACD in the future.