This is exactly what you're up against.....how much do you want to spend?
Epoxy is a waste of time. It will hold for a while if you do everything right. But soon it will crack and the your back where you started...except you no have to remove to epoxy...are you sure it's magnesium?
Welding Magnesium