We study behavior of resonant modes under change of the distance between two parallel dielectric cylinders. The processes of mutual scattering of Mie resonant modes by cylinders result in an interaction between the cylinders which lifts a degeneracy of resonances of the isolated cylinders. There are two basic scenarios of evolution of resonances with the distance. For strong interaction of cylinders resonances are unbound with avoided crossings from the of the Mie resonances with increasing of the distance. That scenario is typical for low exciting resonances (monopole and dipole). For weak interaction of cylinders the resonances are bound around highly excited Mie resonances. Both scenarios demonstrate a significant enhancement of the Q factor compared to the case of isolated cylinder.