Bayern Munich overturned a 3-0 half-time deficit to complete an incredible turnaround and win 4-3 in Mainz.