Trust yourself. Forgive yourself for your mistakes. Know that you've been hurt before and you've made it out. When you are able to heal yourself, and trust that you can do it again, the risk of getting hurt again isn't so scary.
It takes time, and it takes effort. I'm still learning to trust/confide in myself aka have self confidence.