1. Disconnect the negative battery cable.
2. Remove in the order indicated in the table.
3. Install in the reverse order of removal.
Socket Removal Note
1. Insert a tape-wrapped screwdriver into the socket hole, then press against the ring protrusion to lift the socket toward you.
2. As shown in the figure, lift out the socket until the ring protrusion locks into the lower socket hole.
3. Remove the boot panel.
4. From behind the boot panel, slide a tape-wrapped screwdriver in between the socket and the ring protrusion.
5. While twisting the ring protrusion with the screwdriver, push out and remove the socket.
Ring Removal Note
Pull the ring forward while compressing the hooks.
Mazda 6 Service Manual: Rocking the Vehicle
WARNING
Do not spin the wheels at more than 56 km/h (35 mph), and do not allow
anyone to stand behind a wheel when pushing the vehicle: When the vehicle
is stuck, spinning the wheels at high speed is dangerous. The spinning tire could
overheat and explode. This could cause serious injuries.
...
Mazda 6 Service Manual: Discharge headlight service warnings
Discharge headlight bulb service warnings
To prevent electrical shock when replacing the discharge headlight bulb,
dry hands thoroughly, and carry out work in an area out of rain.
When the light switch is on, approx. 25,000 V of high voltage passes
through the discharge headlight bulb so ...