In vivo, AMPK activation prevents myocardial hypertrophy and the concomitant rise of O-GlcNAcylation in wild-type but not in AMPKα2-deficient mice. Here, PRKAA1 is linked to cardiac hypertrophy.