Methylene blue (MB) is a long-term inhibitor of peripheral nerve axons, thereby alleviating or permanently eliminating pain. However, it remains unknown whether MB is safe and effective method of treating osteoarthritis (OA). MB was injected into the knee joints of rabbits and they were monitored for any histological structural changes. The results revealed no evident changes in the histological structure of the normal knee joint following injection of 1 mg/kg MB at 1, 4, 8 and 24 weeks post-injection. Compared with the vehicle control, MB treatment significantly enhanced the weight distribution and significantly decreased the swelling ratio of the rabbits. Additionally, levels of long non-coding RNA (lncRNA) maternally expressed 3 (MEG3) mRNA were significantly increased following treatment with MB, but the protein expression of P2X purinoceptor 3 (P2X3) was significantly suppressed compared with the vehicle control. The levels of interleukin (IL) 6, tumor necrosis factor (TNF)α, IL-1β and IL-8 were significantly suppressed following MB treatment, indicating that MB protects against OA progression. It was also revealed that MEG3 overexpression significantly suppresses levels of P2X3 protein. ELISA indicated that the MEG3-induced reduction of IL-6, TNFα, IL-1β and IL-8 expression was significantly reversed following P2X3 overexpression. Therefore, the results of the present study demonstrated that MB is an effective method of treating OA-associated pain by upregulating lncRNA MEG3 levels. Additionally, lncRNA MEG3 relieves the OA-associated pain and inflammation in a rabbit model of OA by inhibiting P2X3 expression.