下载Microsoft SQL Server 2012 Express
https://www.microsoft.com/en-us/download/details.aspx?id=29062
下载SQL Server Management Studio (SSMS)
https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms
安装Microsoft SQL Server 2012 Express
完成后打开cmd输入如下命令查看
C:\WINDOWS\system32>sqllocaldb info
v11.0
创建数据库
C:\WINDOWS\system32>sqllocaldb create "testdb"
LocalDB instance "testdb" created with version 11.0.
启动数据库
C:\WINDOWS\system32>sqllocaldb start testdb
LocalDB instance "sonar-cpk" started.
找到本地数据库登陆路径
C:\WINDOWS\system32>sqllocaldb info testdb
Name: testdb
Version: 11.0.2318.0
Shared name: usera
Owner: domain\usera
Auto-create: No
State: Running