【发布时间】:2023-04-05 12:29:02
【问题描述】:
机器在我缩小数据库时重新启动,此后SQL Server (MSSQLSERVER) 没有启动。阅读博客后,我将模板文件夹中的master.mdf 和mastlog.ldf 文件替换为相同的文件,假设主数据库在我缩小它时已损坏。
但是问题仍然存在,并且错误日志文件给出了以下消息,
Starting up database 'msdb'.
Starting up database 'mssqlsystemresource'.
Error: 17204, Severity: 16, State: 1.
FCB::Open failed: Could not open file E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\MSDBData.mdf for file number 1. OS error: 3(The system cannot find the path specified.).
Error: 5120, Severity: 16, State: 101.
Unable to open the physical file "E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\MSDBData.mdf". Operating system error 3: "3(The system cannot find the path specified.)".
Error: 17207, Severity: 16, State: 1.
FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\MSDBLog.ldf'. Diagnose and correct the operating system error, and retry the operation.
File activation failure. The physical file name "E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\MSDBLog.ldf" may be incorrect.
The resource database build version is 12.00.2000. This is an informational message only. No user action is required.
Starting up database 'model'.
我可以清楚地说我的机器上没有E:\ 分区。你能帮我修复我现在认为是错误的路径吗?
【问题讨论】:
-
我投票决定关闭并将这个问题移至 dba.stackexchange.com。
标签: sql-server database-administration