恢复主数据库

Recover master database

我收到以下错误

2015-05-13 12:04:31.00 Server      Using locked pages for buffer pool.
2015-05-13 12:04:31.10 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
2015-05-13 12:04:36.14 Server      Node configuration: node 0: CPU mask: 0x000000000000000f Active CPU mask: 0x000000000000000f. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required.
2015-05-13 12:04:36.17 spid7s      Starting up database 'master'.
2015-05-13 12:04:36.30 spid7s      Error: 9003, Severity: 20, State: 9.
2015-05-13 12:04:36.30 spid7s      The log scan number (189:72:1) passed to log scan in database 'master' is not valid. This error may indicate data corruption or that the log file (.ldf) does not match the data file (.mdf). If this error occurred during replication, re-create the publication. Otherwise, restore from backup if the problem results in a failure during startup.
2015-05-13 12:04:36.30 spid7s      Cannot recover the master database. SQL Server is unable to run. Restore master from a full backup, repair it, or rebuild it. For more information about how to rebuild the master database, see SQL Server Books Online.

知道如何解决吗?我无法启动 sql 服务器实例?

如果您告诉我们您在出现此错误消息之前是否做过某事,我们会更容易提供帮助。

如果您进行了更新,可以尝试关注此 KB article。 如果不是,您可以按照 this article 中的说明尝试 运行 在 SQL 服务器设置位置以管理员身份执行以下命令:

Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=InstanceName
/SQLSYSADMINACCOUNTS=accounts [/SAPWD= StrongPassword][/SQLCOLLATION=CollationName]