You misunderstand. !!!!
Magnesium is an ELEMENT.
As an element it exists as atoms in a metallic lattice.
When combined with another element e.g. oxygen as magnesium oxide, (MgO), then it is an ionically bonded molecular compound.
Mg^(2+) + O^(2-) = MgO(s)
Mg is the scientific symbol for the element magnesium :)
In magnesium carbonate the magnesium cation bonds ioniccally with the carbonate anion. The carbon and oxygen in the carbonate anion bond covalently. Mg^(2+) + CO3^(2-_ = MgCO3(s) CO3^(2-) = O=C-(O^(-))2 The covalent bonding arrangement. Two oxygens singly covalently bond to the carbon , each have a charge of '-1' , which resonates between the two oxygen ions giving for a charge of '-2' . The third oxygen is doubly bonded to the carbon and has no charge. This satisfies the valency of carbon at '4' and also satisfies the valency of oxygen at '2'.
MgBr2 is an ionic compound (salt: magnesium bromide)
According to wikipedia, Magnesium Oxide is an ionic compound.
Magnesium oxide is an ionic compound with the formula MgO.
Magnesium oxide, or MgO, is an ionic compound: the result of a metal reacting with a non-metal.
Mg(OH)2 is an ionic compound. Magnesium hydroxide is composed of magnesium ions (Mg2+) and hydroxide ions (OH-), which are held together by ionic bonds.
Pure ionic in Mg(OH)2 = Mg2+ and 2 OH-
MgBr2 is an ionic compound. Magnesium (Mg) is a metal and bromine (Br) is a non-metal, so they form an ionic bond by transferring electrons.
MgCl2 is an ionic compound. It is composed of magnesium cations (Mg2+) and chloride anions (Cl-), which are held together by ionic bonds.
Magnesium hydroxide is an ionic compound, as it is composed of a metal cation (magnesium) and a hydroxide anion (OH-). Ionic compounds typically form when a metal reacts with a non-metal to transfer electrons.
Magnesium oxide is ionic.