Anal Sex

i've done anal once and it hurt soo bad that i wouldn't even let him go all the way in. but I want to do it, just to change things up sometimes...any tips on how to take it??