Approximately one-third of agricultural land worldwide is affected by salinity, which limits the productivity and sustainability of crop ecosystems. Plant-growth-promoting rhizobacteria (PGPR) are a potential solution to this problem, as PGPR increases crop yield through improving soil fertility and stress resistance. Previous studies have shown that Priestia megaterium ZS-3(ZS-3) can effectively help plants tolerate salinity stress. However, how ZS-3 regulates its metabolic adaptations in saline environments remains unclear. In this study, we monitored the metabolic rearrangement of compatibilisers in ZS-3 and combined the findings with genomic data to reveal how ZS-3 survives in stressful environments, induces plant growth, and tolerates stress. The results showed that ZS-3 tolerated salinity levels up to 9%. In addition, glutamate and trehalose help ZS-3 adapt to osmotic stress under low NaCl stress, whereas proline, K+, and extracellular polysaccharides regulate the osmotic responses of ZS-3 exposed to high salt stress. Potting experiments showed that applying the ZS-3 strain in saline and neutral soils could effectively increase the activities of soil acid phosphatase, urease, and invertase in both soils, thus improving soil fertility and promoting plant growth. In addition, strain ZS-3-GFP colonised the rhizosphere and leaves of Cinnamomum camphora well, as confirmed by confocal microscopy and resistance plate count analysis. Genomic studies and in vitro experiments have shown that ZS-3 exhibits a variety of beneficial traits, including plant-promoting, antagonistic, and other related traits (such as resistance to saline and heavy metal stress/tolerance, amino acid synthesis and transport, volatile compound synthesis, micronutrient utilisation, and phytohormone biosynthesis/regulatory potential). The results support that ZS-3 can induce plant tolerance to abiotic stresses. These data provide important clues to further reveal the interactions between plants and microbiomes, as well as the mechanisms by which micro-organisms control plant health.