An electrical connector for electrically connecting a module to a printed circuit board, comprises an insulative housing receiving the module, a plurality of contacts received in the insulative housing and a cover pivotally assembled to the insulative housing. The cover presses upon the module and extends beyond a rear end of the insulative housing to further limit or press a part of the module exposed outside the insulative housing. The electrical connector can reliably retain the module.