The 35-year-old musician had a throat surgery in August last year and was advised to preserve his voice for six months after a second operation to remove a granuloma from his vocal cords, reported Contactmusic.
"There were days and weeks and literally months of not doing anything, and running out of things to do when there's nothing to do... I was watching a whole bunch of Westerns every night and making rice bowls with chicken, just healthy food. I'm on a bran diet, man. I'm the king of rice and chicken," said Mayer.
"At 35, you realise you just can't do whatever you want to do in terms of diet, sleep and overuse. You're held accountable. It's a ratio of one to one of what you put in to what you get out.
"I never went off the rails, but, as a singer, you have to really watch what you put into your body. Especially with what you put in your body before you lay flat and go to sleep," he added.