learn the hard way (or do something the hard way)
Word List: Common Expressions L-Q
when you can learn from your mistakes
It took me a long time to get my degree because there were many times where I was learning the hard way. In the end, I realized that I had learned a lot from my mistakes.