To gain a temporary relief of TMJ pain, over-the-counter painkillers like ibuprofen, naproxen and piroxicams can be used. If the pain is too severe then Dr. Adatrow would prescribe you stronger pain killers like opiods (morphine, codeine), benzodiazepines (Valium, Xanax), muscle relaxants and anticonvulsants. Anti-depression medications can be prescribed to reduce depression and stress.