I know him by name, but I don't think I've ever met him.
His election campaign has only just got up and running, so most voters don't know him by name yet.
She didn't recognize me because she only knew me by name.
A lot of people in the crowd knew him by name and called out to him.
She was known only by name to most of the people invited.
See also: know verb (BE FAMILIAR WITH)