The toothache you mentioned can basically be diagnosed as caused by pulpitis. Generally, there will be typical symptoms of headache on one side, hot and cold stimulation pain and sudden pain at night. For pulpitis, those who can see a doctor in time should see a doctor as soon as possible, and root canal treatment can be completely and quickly solved. If you can't see a doctor in time, you can take medicine temporarily to relieve pain, but taking medicine or even infusion for a long time will not only have poor effect, but also delay your illness. The most important thing is that the damage to the liver and kidney of the body is intangible and cumulative.
If there is cold and hot stimulation pain, plus pain without stimulation (spontaneous pain), it can basically be defined as pulpitis. The only solution to pulpitis is root canal therapy, which is commonly known as nerve killing. This is the only effective method to treat pulp infection. Don't believe in any folk remedies. If there is any expedient measure, it is necessary to see a dentist. Don't hesitate to get treatment as soon as possible. Many places have 24-hour oral cavity.