One of the best lessons I ever learned was that it was OK to fail. It is OK to make mistakes. Failure has a wonderful way of teaching you lessons, sometimes very painful lessons, that you can use the next time you tackle a problem. You may not learn the lesson the first time, or the second, or fifth time, but eventually each failure will teach you something you can use later.
How did I learn this? By recognizing one crucial thing – no one starts off being the best at something. All the greats of anything did it through hard work, something you can read about in Malcolm Gladwell’s Outliers  and his 10,000 hours idea (that to truly master something you need to spend 10,000 hours on it).
And you know what? The first thousand hours were probably filled with failures.
And the best part about failure is that when you succeed, that’s all anyone will ever remember.