Magnesium oxide (MgO) is a base and not an acid. Magnesium is a metal and like most of the metals, it form basic oxides. When magnesium oxide reacts with water the following reaction takes place:
SO2 are acidic in nature because this oxide on dissolving in water give acids as product.