How do you deal with long distance

Ca

My boyfriend and I have been together for about a year. Up until about 2 hours ago our plan was to move back to my home town but then he got a phone call from a job in his field, and is now moving to a state 9 hours away from me. We have never been apart for that long, the longest was a month and that was in the very beginning of our relationship so it wasn’t as hard. I have never been in a long distance relationship but have only ever heard terrible things about it and am just really scared. Does anyone have any advice or have experience with this that could talk to me?