Methanol can behave as a nucleophile which involves the electron pair donation by the oxygen atom to the atom other than hydrogen where as hydroxide anion is behaving as a electron donar to the atom hyrogen usually H+ . Both species behaves in similar way as the nucleophile but the way in which the electrons are donated is different.