Use liners or the cheap paracetamol as suggested. Teething's a pain. I found with ds it worse in the first 6 months and not so bad now but he's only got a couple of teeth left to come through! Talk about making life hard for himself lol.
i use the homeopathic remedy chamomilla 6c for teething pain (get it from boots, its got the same stuff in it as the powders but half the price!), and on really bad days bonjela. sometimes paracetamol (chemist own brand without colours), but tbh we dont usually need it.