Research about magnesium corrosion inhibitors focuses on their influence on corrosion rate, but little attention is paid to whether the service reliability of alloys is improved by the inhibitors. In this work, the effects of selected corrosion inhibitors on the corrosion rate and localized corrosion behavior of magnesium alloy were compared. It is found that some corrosion inhibitors fail to inhibit the localized corrosion of magnesium, resulting in the inability to effectively maintain the mechanical bearing capacity of the corroded magnesium alloy. This study is of great significance for establishing reasonable screening and evaluation criteria for magnesium alloy corrosion inhibitors.