What is the name of the compound MgCl2?

Magnesium Chloride.
Magnesium chloride