This study was reported in The Journal of Pain. A daily dose of raw or heat-treated ginger is effective for relieving muscle pain following strenuous exercise.
Ginger may have anti-inflammatory and analgesic properties similar to nonsteroidal anti-inflammatory drugs. In one study, four to 36 weeks of daily ginger doses (30 to 500 mg.) achieved reductions in knee pain from osteoarthritis. Be consistent in taking ginger daily especially if you get sore muscles or pain from eccentric muscle exercises.
The ginger can be raw or heated. Heat treating ginger, did not increase the analgesic benefit.