Patent attributes
A locking mechanism and server having the same are provided. The locking structure is assembled to a rack having a positioning hole. The server including a slide rail assembly, a chassis and a locking structure. The slide rail assembly includes an outer slide rail and an inner slide rail. The chassis is fixed to one side of the inner slide rail and movable with the inner slide rail. The locking structure is fastened to the positioning hole and fixed to the inner slide rail. The locking structure includes a housing, a handle, a hook element, and a resilient element. When the handle is rotated to drive the hook element to be detached from the positioning hole, the chassis is released and movable with respect to the rack. The locking structure has a simple structural design, so costs can be reduced.