The utility model relates to the technical field of compressors, in particular to a waterproof structure for a compressor and the compressor comprising the waterproof structure. The waterproof structure comprises a wire harness connector and a connector body which are axially through, the inner
diameter of one end of the wire harness connector is matched with the outer
diameter of a cable wire harness, the other end of the wire harness connector is in sealing connection with one end of the connector body, and the other end of the connector body is in sealing connection with a sealing
binding post on an upper shell cover of the compressor. And the
cable harness sequentially penetrates through the harness joint and the joint main body and is electrically connected with the sealing
binding post. The two ends of the connector body are in sealed connection with the wiring harness connector and the sealing
binding post respectively to achieve the waterproof purpose, the connector body which is internally through is directly in sealed connection with the sealing binding post, and a
junction box cover and a screw and nut structure which enables the
junction box cover to be in tight press fit with an upper shell cover of the compressor are omitted. The occupation of a large plane of the upper shell cover of the compressor is obviously reduced, and the waterproof structure is simplified.