异常原因:A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. 在 LocalDB 实例启动期间出错: 无法启动 SQL Server 进程。)
启动LoaclDB实例"MSSQLLocalDB"失败,在LocalDB实例启动期间错误:无法启动SQL Server进程。
1.停止SQL Server服务
2.卸载localdb
3.C盘搜索,删除master.mdf,mdf,.ldf文件(卸载后有的会自动删除)
4.C盘搜索,删除MSSQLLocalDB文件
5.重装localdb
6.sqllocaldb i
7.sqllocaldb d MSSQLLocalDB。
8.sqllocaldb c MSSQLLocalDB。
9.sqllocaldb s MSSQLLocalDB。
目前不知道发生问题的具体原因,多试几次。