Prolactin (PRL) is an important hormone that is secreted by the pituitary gland and plays an important role in the growth, development and reproduction of organisms. Thyrotropin-releasing hormone (TRH) is a common prolactin-releasing factor that regulates the synthesis and secretion of prolactin. In recent studies, microRNAs (miRNAs) have been found to play a key role in the regulation of pituitary hormones. However, there is a lack of systematic studies on the regulatory role that TRH plays on the pituitary transcriptome, and the role of miRNAs in the regulation of PRL synthesis and secretion by TRH lacks experimental evidence. In this study, we first investigated the changes in PRL synthesis and secretion in the rat pituitary gland after TRH administration. The results of transcriptomic analysis after TRH treatment showed that 102 genes, including those that encode Nppc, Fgf1, PRL, Cd63, Npw, and Il23a, were upregulated, and 488 genes, including those that encode Lats1, Cacna2d1, Top2a, and Tfap2a, were downregulated. These genes are all involved in the regulation of prolactin expression. The gene expression of miR-126a-5p, which regulates the level of PRL in the pituitary gland, was screened by analysis prediction software and by a dual luciferase reporter system. The data presented in this study demonstrate that TRH can regulate prolactin synthesis and secretion through miR-126a-5p, thereby improving our understanding of the molecular mechanism of TRH-mediated PRL secretion and providing a theoretical basis for the role of miRNAs in regulating the secretion of pituitary hormones.