The chemical reactions and pathways involving melibiose, the disaccharide 6-O-alpha-D-galactopyranosyl-D-glucose.