打开vs2017程序组中的Developer Command Prompt for VS 2017项, 执行以下两条命令即可: sqllocaldb.exe stop sqllocaldb.exe delete