Background: The dopamine D2 receptor (DRD2) plays an important role in the increased prolactin (PRL) levels associated with the pathogenesis of antipsychotic drugs (ADs). Elevated prolactin levels can affect people’s quality of life. Maiya alkaloids has been used to treat diseases associated with high PRL levels. Maiya, is a processed product of the mature fruits of Hordeum vulgare L. (a gramineous plant) after sprouting and drying and also a common Chinese herbal drug used in the clinic, is traditionally used to treat abnormal lactation, and is currently used clinically for the treatment of abnormal PRL levels. Aims: Epigenetic mechanisms can be related to DRD2 expression. We investigated the role of DRD2 methylation in the induction of PRL expression by ADs and the mechanism underlying the effects of total barley maiya alkaloids (TBMA) on this induction. Methods: The methylation rate of DRD2 in 46 people with schizophrenia who took risperidone was detected by MassARRAY sequencing. Humans were long term users of Ris. Seventy Sprague Dawley female rats were divided into seven groups. A rat model of risperidone-induced PRL was established, and the potential protective effects of TBMA and its components [e.g., hordenine (Hor)] on these increased PRL levels were investigated. The PRL concentration was detected by Enzyme-linked immunosorbent assay. PRL, DRD2, and DNA methyltransferase (DNMT1, DNMT3α, and DNMT3β) protein and mRNA expression were detected by western blotting and real-time polymerase chain reaction (RT-PCR), respectively. The positive rate of methylation in the DRD2 promoter region of rats was detected by MassARRAY sequencing. Results: Clinical studies showed that the positive rate of DRD2 methylation associated with increased PRL levels induced by ADs was significantly higher than in the normal prolactinemia (NPRL) group. In vivo and vitro, TBMA and Hor inhibited this induction of PRL expression and increased DRD2 expression by inhibiting the expression of the DNMTs. Conclusions: TBMA and hordenine increased DRD2 expression by inhibiting DNMT-dependent DRD2 methylation.