【问题标题】:Error occurred while opening logfile C:\Windows\system32\LogFiles\Sum\Api.log打开日志文件 C:\Windows\system32\LogFiles\Sum\Api.log 时出错
【发布时间】:2014-11-07 23:14:19
【问题描述】:

我需要每天早上重新启动 MS SQL 服务器服务,因为我的 Web 客户端站点无法连接。
但是,当我启动我的服务时,它可以工作。我不知道是什么导致了问题。 我在错误日志中发现了这一点。

sqlservr (4052) An attempt to open the file "C:\Windows\system32\LogFiles\Sum\Api.log"  
for read only access failed with system error 5 (0x00000005): 
"Access is denied. ".  
The open file operation will fail with error -1032 (0xfffffbf8).

sqlservr (3000) An attempt to open the file "C:\Windows\system32\LogFiles\Sum\Api.chk"  
for read / write access failed with system error 5 (0x00000005): "Access is denied. ".  
The open file operation will fail with error -1032 (0xfffffbf8).

希望有人能帮我解决这个问题。

【问题讨论】:

    标签: sql-server visual-studio-2012 window


    【解决方案1】:

    您的服务帐户需要访问该文件夹:

    C:\Windows\System32\LogFiles\Sum
    

    转到文件夹并添加具有读/写权限的帐户。

    http://support.microsoft.com/kb/2811566

    【讨论】:

    • 如果您使用默认的 SQL 安装选项,您的服务帐户将作为“网络服务”运行,因此授予对此文件夹的完全控制权为我解决了这个问题,谢谢。我想知道为什么 MS 从默认权限中忘记了这些新身份(本地/网络服务),它们已经存在了足够长的时间。这仍然发生在带有 SQL Server 2017 的 Windows Server 2019 上!
    • 我遇到了同样的问题,使用了同样的解决方案,但还是不行...OS winserver 2019, sql server 2017
    猜你喜欢
    • 2013-11-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-04
    相关资源
    最近更新 更多