I've learnt that it's OK not to succeed on the first try. It's not about the destination, it's about the journey. As long as you're getting closer to your goal, you're on the right track. But you don't usually get there right away.
I used to give up as soon as I failed.