Glucose enhances the survival of O. niloticus against E.tarda infection. Glucose reprograms O. niloticus metabolome. Glucose promotes the synthesis of palmitic acid and stearic acid. Stearic acid enhances the survival of O. niloticus against E.tarda infection.