Disclosed herein is an electrical connector, which includes a first base, a second base and a cover. The first base includes a first recess and a first conductor. The first recess is positioned on an upper surface of the first base. The first conductor extends into the first recess through a lateral surface of the first base. The second base, has a structure similar to the first base, and includes a second recess and a second conductor. The cover includes a body, a first convex ring, a second convex ring and a metallic connector. When the cover engages with both the first and second bases, the first and second convex rings respectively engages with the first and second recesses, and thus forming two enclosed space.