Provided is an application of a compound represented by general formula 1 in the preparation of a local anesthetic. The local anesthetic comprises at least a solid portion and a liquid portion that are separated. The solid portion comprises a therapeutically effective amount of the compound represented by general formula 1. The liquid portion is a pharmaceutically acceptable solvent. The solid portion and the liquid portion are mixed when the local anesthetic is used.