There are no direct trains from Mysuru to Ratlam as per my knowledge. One can take 12975 from Mysuru and Get down at Nagda Junction which is around 40 kms away from Ratlam. Alternatively, one can take 12613 Tippu Express from Mysuru to Bengaluru Junction, 11014 from Bengaluru Junction to Pune Junction and either 22943 Pune - Indore Superfast (M,T,T,F,S) or 12939 Pune - Jaipur Superfast (S, W) to reach Ratlam Junction.
I have created chain for this. The chain number is 22689. You can check other chains as well