A slide rail mechanism includes a slide rail and a connection device. The connection device includes a first component, a second component, and an operating member. The first component is connected to the slide rail. The second component can be moved with respect to the first component. The operating member is configured to laterally displace, and thereby adjust, the second component with respect to the slide rail.