Cavity quantum electrodynamic system with strongly coupled single atoms provides a good platform for studying quantum information processing, quantum simulation, quantum network, and distributed quantum computing. Cooling and trapping single atoms is a crucial technique in the quantum technology. At present, in a high-finesse cavity with finite space, cooling and trapping single atoms is a big challenge, even though it is a mature technique for free space. Great efforts have been made to cool and trap single atoms inside a cavity, and for a trapped atom its lifetime has reached as long as tens of seconds. Developing a more flexible method of cooling and trapping single atoms in a cavity is still essential for a strongly coupled cavity quantum electrodynamic system. In this work, we demonstrate experimentally that a single cesium atom in a cavity can be trapped by utilizing a single optical tweezer settled in cavity mode, and its lifetime is (2.60 ± 0.18) s. The experiment is carried out in a Fabry-Perot cavity, which is assembled by two concave mirrors each with a curvature radius of 100 mm, and cavity length of 335 μm. The concave surfaces are highly reflective, and the cavity has a finesse of 6.1 × 10<sup>4</sup>. The 1080 nm optical tweezer with a waist of 2 μm is formed by an achromatic lens group with a numerical aperture of 0.4. At first, the precooled atomic assemble released from the magneto-optical trap (MOT) is transferred into cavity mode by an optical dipole trap with a waist of 36 μm. Then, one of the successfully transferred atoms is captured by the optical tweezer with the aid of cavity cooling mechanism. A blue detuned cavity locking laser is used as a standing-wave optical trap along the cavity axis. The signal of successfully trapped one atom is obtained by recording transmission of the cavity that will decrease owing to the strong coupling induced vacuum Rabi splitting. Finally, we demonstrate the precise manipulation of the atom-cavity coupling strength, which is achieved by scanning the position of the trapped atom step by step by using a high-precision translation stage. The system realized in this work can be used to study the dynamics of single atom-photon interactions with adjustable coupling strength. In addition, the mechanism adopted in this work is compatible with constructing tweezer arrays inside cavity mode, and thus possesses more flexibility and great potentials in cavity-based quantum entanglement and quantum simulation.