Five people were charged early Wednesday in connection with an illegal after-hours operation at a bar in Waterbury.