It is known since 1320. The origin of the name comes from the name of the river Glynianka. It belonged to the Ukrainian magnates Vyshnevets'kyis. From them the town had got an emblem - a heart pierced by arrows.
Since 1648 it was a squadron city of Myrhorod regiment.