"The Andy Griffith Show" was set in the town of Mayberry in which state? on Aug 17, 2023 Published in TV Trivia North Carolina. Don Knotts played Barney on "The Andy Griffith Show".