Mayor Stoner is shown giving Andy Taylor orders in numerous installments. He has no real authority over the County Sheriff.
The Mayor holds Andy responsible for Rafe Hollister being chosen to sing at the event, but the Choir Director, John Masters, was the one who made the decision.
Although Andy Griffith did play guitar in real life, his fingering during Rafe's performance does not match the soundtrack.