Klein–Gordon oscillator in the background space-time generated by a rotating cosmic string subject to a Cornell-type scalar and Coulomb-type vector potentials including an internal magnetic flux is studied. We obtain the relativistic energy eigenvalues and the corresponding eigenfunctions and analyze a relativistic analogue of the Aharonov–Bohm effect for bound states.