An electric door driving mechanism for a machine tool, wherein the electric door driving mechanism comprises: a track unit comprising: a base mount having an accommodation groove extending along a longitudinal axis of the base mount, a sliding groove located below the accommodation groove, a bottom opening in communication with the sliding groove, and left and right openings (27a, 27b) in communication with the accommodation groove, the sliding groove, and the bottom opening; a left end cap closing the left opening; and a right end cap closing the right opening; a sliding unit comprising: a slide disposed in the sliding groove in a way that the slide is movable along the longitudinal axis of the base mount; and a door panel mounting member fixed to the slide, such that the door panel mounting member is moveable along with the slide, the door panel mounting member having a body portion downwardly extending through the bottom opening and being partially exposed outside the base mount; a linear motor comprising a stator disposed in the accommodation groove and arranged along the longitudinal axis, and a mover disposed on the slide, facing the stator, and arranged along the longitudinal axis, the mover being driven by the stator to drive the slide to slide in the sliding groove; characterized in that front and rear water-resistant pieces (7, 8) respectively fixed to the base mount along the longitudinal axis in a way that the front and rear water-resistant pieces (7, 8) are partially abutted with each other to close the bottom opening while the body portion of the door panel mounting member passes between the front and rear water-resistant pieces (7, 8) in a way that the body portion of the door panel mounting member has front and rear sides abutted against the front and rear water-resistant pieces (7, 8), respectively. a base mount having an accommodation groove extending along a longitudinal axis of the base mount, a sliding groove located below the accommodation groove, a bottom opening in communication with the sliding groove, and left and right openings (27a, 27b) in communication with the accommodation groove, the sliding groove, and the bottom opening; a left end cap closing the left opening; and a right end cap closing the right opening; a sliding unit comprising: a slide disposed in the sliding groove in a way that the slide is movable along the longitudinal axis of the base mount; and a door panel mounting member fixed to the slide, such that the door panel mounting member is moveable along with the slide, the door panel mounting member having a body portion downwardly extending through the bottom opening and being partially exposed outside the base mount; a linear motor comprising a stator disposed in the accommodation groove and arranged along the longitudinal axis, and a mover disposed on the slide, facing the stator, and arranged along the longitudinal axis, the mover being driven by the stator to drive the slide to slide in the sliding groove; characterized in that front and rear water-resistant pieces (7, 8) respectively fixed to the base mount along the longitudinal axis in a way that the front and rear water-resistant pieces (7, 8) are partially abutted with each other to close the bottom opening while the body portion of the door panel mounting member passes between the front and rear water-resistant pieces (7, 8) in a way that the body portion of the door panel mounting member has front and rear sides abutted against the front and rear water-resistant pieces (7, 8), respectively. a slide disposed in the sliding groove in a way that the slide is movable along the longitudinal axis of the base mount; and a door panel mounting member fixed to the slide, such that the door panel mounting member is moveable along with the slide, the door panel mounting member having a body portion downwardly extending through the bottom opening and being partially exposed outside the base mount; a linear motor comprising a stator disposed in the accommodation groove and arranged along the longitudinal axis, and a mover disposed on the slide, facing the stator, and arranged along the longitudinal axis, the mover being driven by the stator to drive the slide to slide in the sliding groove; characterized in that front and rear water-resistant pieces (7, 8) respectively fixed to the base mount along the longitudinal axis in a way that the front and rear water-resistant pieces (7, 8) are partially abutted with each other to close the bottom opening while the body portion of the door panel mounting member passes between the front and rear water-resistant pieces (7, 8) in a way that the body portion of the door panel mounting member has front and rear sides abutted against the front and rear water-resistant pieces (7, 8), respectively.