For painful cracked teeth, you can take penicillin antibiotics such as amoxicillin or cephalosporin; for patients who are allergic to penicillin, you can take oral macrolide antibiotics such as roxithromycin and erythromycin, but you should take them on an empty stomach to ensure their effectiveness; for severe pain caused by cracked teeth, you can also take steroidal anti-inflammatory drugs for pain relief such as ibuprofen and loxoprofen sodium.
Pain in the teeth is often caused by infection in the pulp or periodontal tissues, and taking medication can only provide temporary relief, requiring prompt consultation with a dentist for symptomatic treatment.