The embodiment of the utility model provides a connector and a humidifier, the connector comprises an electrical terminal structure, a cable, an internal mold structure, a net
tail and a shell
assembly, one end of the cable is electrically connected with an electrical terminal through a wire, the internal mold structure at least wraps the connecting part of the wire and the electrical terminal, the net
tail wraps the periphery of one end, close to the electrical terminal structure, of the cable, and the shell
assembly is connected with the cable. The inner mold structure is connected with the fixing base and the net
tail, one part of the net tail is contained in the shell
assembly, and the other part of the net tail extends out of the shell assembly. An integral structure formed by the connector, the net tail, the inner mold structure and the fixing seat bears the drawing acting force, the probability that the cable is bent and damaged due to the drawing acting force is reduced, the wire and the connecting portion of the wire and the electrical terminal hardly bear the drawing acting force, the net tail does not need to wrap the
peripheral surface of the shell assembly, and therefore the cable is not prone to being damaged. While the cable is effectively protected, the overall appearance size of the connector is relatively small, so that the
miniaturization design of the connector is facilitated.