The invention relates to a
wind power generator with a windproof function. The
wind power generator comprises a
seabed anchor, a connecting
pile, a base, a floater, a
tower barrel, a generator unit, a drive mechanism, a first fixing mechanism and a second fixing mechanism. The first fixing mechanism comprises a support rod, a push rod, a first rack, a second rack and a circular gear. The second fixing mechanism comprises a
force sensor, a
winch and a pull
rope. The drive mechanism comprises blades, a
flange plate and a transmission shaft. According to the
wind power generator with the windproof function, under the normal situation, the
tower barrel of the
wind power generator is fixed into the base, and when the
sea level is extremely elevated under the conditions of rainstorm, tsunami and the like, the
tower barrel can float on the sea surface under the action of the floater. In addition, the
wind power generator is further provided with an anti-collision mechanism, and during ship collisions, the
wind power generator and the ships can all be protected.