Learn from experience and from your mistakes.
live and learn
Profit from experience, as in I ignored the garden book, planted my beans in March, and they all rottedlive and learn. [Second half of 1500s]