Moving out..

I've been with my boyfriend for 4 years and next year I am moving 2 hours away from the town we both live due to commitments. He will stay here and work while I move away. 
I'm really worried, everyone always says "oh you never last when you move away" etc etc so I'm really quite nervous and worried. Does anyone have any advice?