1. For MT vehicle, remove the shift lever knob.
2. Remove the cup holder panel using a tape-wrapped screwdriver.

3. Remove the boot panel using a tape-wrapped screwdriver, disconnect the cigarette lighter connector, and remove the front ashtray illumination.
4. Remove the bolts.
5. Install in the reverse order of removal.
Glove compartment removal/installation
Console disassembly/assemblyMazda 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: Rear window glass installation
Caution
To prevent the sealant from cracking or the glass from being
pushed out by air pressure if a door is closed, open all of the windows and
leave them open until the sealant has hardened.
1. Cut away the old sealant using a razor so that 1-2 mm {0.04-0.07 in}
thickness of sealant ...