Scrape off the old wax ring from the flange, toilet base, and floor using a putty knife. Inspect the flange for cracks, rust, ...
Compression fittings, for one example, require compression ... but not too much, or you'll deform the metal and ruin the joint. Then there are flare connections, which require you to deform the ...