gpt4 book ai didi

sql-server - SQL Server LocalDB 错误 ("parent instance invalid")

转载 作者:行者123 更新时间:2023-12-05 08:54:14 28 4
gpt4 key购买 nike

我安装了 SQL Server 2012 本地数据库 from this download

选择 ENU\x64\SqlLocalDB.MSI

我运行正常,然后尝试使用 sqllocaldb 命令,我得到了这个错误:

PS C:\WINDOWS\system32> sqllocaldb start mssqllocaldb 

Start of LocalDB instance "mssqllocaldb" failed because of the following error:
Unexpected error occurred inside a LocalDB instance API method call.
See the Windows Application event log for error details.

日志是这样说的:

Windows API call RegOpenKeyExW returned error code: 2. Windows system error message is: The system cannot find the file specified. Reported at line: 967.

LocalDB parent instance version is invalid: MSSQL12E.LOCALDB

Windows API call GetSvcBinPathByInstName returned error code: 2. Windows system error message is: The system cannot find the file specified. Reported at line: 3546.

最佳答案

我通过删除实例并重新创建来修复它:

PS C:\WINDOWS\system32> sqllocaldb delete mssqllocaldb
LocalDB instance "mssqllocaldb" deleted.
PS C:\WINDOWS\system32> sqllocaldb create mssqllocaldb
LocalDB instance "mssqllocaldb" created with version 11.0.
PS C:\WINDOWS\system32> sqllocaldb i
mssqllocaldb
v11.0

关于sql-server - SQL Server LocalDB 错误 ("parent instance invalid"),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50748661/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com