An electrical connector (100) includes an insulative housing (10), a number of contacts (20) retained in the insulative housing, a metal shell (30) shielding the insulative housing, and a pair of board locks (40). The insulative housing has a body portion (11) and a mating portion (12). The body portion defines a pair of receiving spaces (14) extending therethrough. Each board lock has a first plate (41) with a hollow cylinder (44) and a hook section (42) extending out of the insulative housing. The metal shell defines a pair of through holes (33) corresponding to the hollow cylinders respectively. The metal shell and the insulative housing sandwich the first plates of the board locks therebetween.