Supersymmetric SO(N)/Sp(N) gauge theory from matrix model: exact mesonic vacua