MILWAUKEE -- For most of Wednesday afternoon, the wind was blowing in from left field at Miller Park, where the Toronto Blue Jays were wrapping up a long and frustrating road trip against the Milwaukee Brewers.

The winds shifted, though, in the sixth inning -- not coincidentally around the same time that Jose Bautista belted his 24th home run of the season to break open a one-run game as the Blue Jays coasted to a 9-5 victory.

"You could kind of hear a collective sigh on the bench," knuckleballer R.A. Dickey said. "This has not been a good trip for us."

Toronto had lost six of the first seven games on the three-city swing, including their last two in a row, and were lit up the night before by the Brewers, who had won five straight coming into the game.

It fell upon Dickey to stop Milwaukee's surge and end Toronto's slide. While not dominant, he was effective despite giving up five runs, eight hits and an walk (intentional) in 5 2/3 innings.

His Blue Jays teammates provided more than enough of a boost, scoring all nine runs in the final five innings and driving in seven with two outs.

Down 2-0 in the fifth, shortstop Jose Reyes and left fielder Melky Cabrera opened the inning with back-to-back doubles to make it 2-1.

First baseman Edwin Encarnacion tied the score with a run-scoring single up the middle before Brewers right-hander Jimmy Nelson worked out of the jam, escaping further damage.

Milwaukee went back ahead in the bottom of the inning when center fielder Carlos Gomez scored on a fielder's choice by right fielder Ryan Braun, but the Blue Jays -- who were held to three or fewer runs four times on the trip -- broke the game open in the sixth inning.

Again, Toronto got things started with back-to-back doubles, this time with one out to tie the score at 3. Manager John Gibbons let Dickey hit for himself and, after he struck out, Brewers manager Ron Roenicke replaced Nelson with left-hander Zach Duke, who gave up consecutive singles to Reyes and Cabrera.

Roenicke then turned to right-hander Brandon Kintzler, who hung a 1-2 fastball that Bautista lined to left center, giving the Blue Jays a 7-3 lead.

"He made a mistake," Roenicke said. "A 1-2 count and he didn't put the ball where he wanted to. It's hard when you have a hitter that good. You hit two strikes on him, you better be able to put it where you want to."

Milwaukee cut into the deficit in the bottom of the inning when Gomez tagged Dickey for a two-run homer, bringing his day to an end.

"I expect more out of myself," Dickey said. "Especially there in the sixth, I was one out away from it being a tolerable outing. I have to get better at being able to close out inning when we score in the top of the inning. I was right there; just one floating two-out knuckleball and it was a two-run home run."

The Brewers mounted one more threat, putting two on with two outs in the seventh inning. They caught a break when Gibbons lost a challenge of a force play at second, but right-hander Aaron Sanchez stranded both runners by getting first baseman Mark Reynolds to fly out to left.

With the Blue Jays' bullpen holding the Brewers at bay, Toronto got one last jolt in the ninth inning on a two-run homer by center fielder Colby Rasmus.

"It takes a team effort to win," Gibbons said. "Your big boys in the middle, they have to carry you, but everybody has to pitch in in one way or another and you have to play good defense. There were some big turning points in that game."

NOTES: Brewers RHP Jimmy Nelson started his fourth consecutive game against a former Cy Young Award winner. His last three starts have come against Giants LHP Tim Lincecum, Dodgers LHP Clayton Kershaw and Dodgers RHP Zack Greinke. RHP Dickey, who spent the 2007 season with the Brewers' Triple-A affiliate, won the award in 2012 while with the New York Mets. ... The Brewers entered their final interleague game of the season with an 11-8 record, marking their first winning interleague season since 2010.