There are a number of gum grafts available, your dentist will recommend the best treatment for your personal circumstances.
Your dentist will first numb the area with a local anesthetic. They will either take tissue from under the top layer of your mouth by making a flap (a Connective Tissue Graft), or take it directly from the top layer of tissue on the roof of your mouth (a Free Gingival Graft). The removed tissue will be stitched over the existing gum tissue to cover the exposed route.
If you have lots of gum tissue on the surrounding area, your dentist may do a Pedicle (Lateral) Graft, where they take tissue from the gum area near the tooth, partially cut the tissue leaving one edge attached, and stretch the tissue over the exposed root stitching it in place.
Over-the-counter pain medications may be sufficient after a procedure, but the surgeon will issue a prescription if something stronger is needed. Discuss how and when any medications should be used to avoid complications.
Typical healing process can take about 1-2 weeks, depending on the type of gum surgery performed. Your oral surgeon will also provide post-op instructions and care alternatives to help the healing process.