A method of manufacturing a cable with resin molded body, wherein the cable with resin molded body comprises a cable and a resin molded body formed by resin molding so as to cover a tip portion of the cable, wherein the resin molded body comprises a main body to cover the tip portion of the cable and a flange to fix the resin molded body to an attachment object, the flange being integrally molded with the main body, and wherein the flange comprises a bolt hole through which a bolt is inserted so as to fix the flange to the attachment object, the method comprising: molding the resin molded body by injecting a resin into a mold, the mold comprising a main body-molding portion for molding the main body, a flange-molding portion for molding the flange, characterized in that an outlet is formed behind the flange-molding portion in relation to the main body-molding portion; and in that the method comprises draining the resin through the outlet during the molding of the resin molded body, wherein the mold further comprises a first resin inlet formed at a position of a base end portion of the main body-molding portion corresponding to a covering of the molded cable, an end portion of the covering being covered by the resin molded body formed by resin molding and wherein the resin is injected through the first resin inlet into the mold during the molding of the resin molded body. wherein the cable with resin molded body comprises a cable and a resin molded body formed by resin molding so as to cover a tip portion of the cable, wherein the resin molded body comprises a main body to cover the tip portion of the cable and a flange to fix the resin molded body to an attachment object, the flange being integrally molded with the main body, and wherein the flange comprises a bolt hole through which a bolt is inserted so as to fix the flange to the attachment object, the method comprising: molding the resin molded body by injecting a resin into a mold, the mold comprising a main body-molding portion for molding the main body, a flange-molding portion for molding the flange, characterized in that an outlet is formed behind the flange-molding portion in relation to the main body-molding portion; and in that the method comprises draining the resin through the outlet during the molding of the resin molded body, wherein the mold further comprises a first resin inlet formed at a position of a base end portion of the main body-molding portion corresponding to a covering of the molded cable, an end portion of the covering being covered by the resin molded body formed by resin molding and wherein the resin is injected through the first resin inlet into the mold during the molding of the resin molded body. molding the resin molded body by injecting a resin into a mold, the mold comprising a main body-molding portion for molding the main body, a flange-molding portion for molding the flange, characterized in that an outlet is formed behind the flange-molding portion in relation to the main body-molding portion; and in that the method comprises draining the resin through the outlet during the molding of the resin molded body, wherein the mold further comprises a first resin inlet formed at a position of a base end portion of the main body-molding portion corresponding to a covering of the molded cable, an end portion of the covering being covered by the resin molded body formed by resin molding and wherein the resin is injected through the first resin inlet into the mold during the molding of the resin molded body.