SQL Server 2017 Express安装失败

时间:2019-05-21 17:00:50

标签: sql sql-server installation

我尝试安装SQL Server 2017 Express的计算机从未成功安装,并且修复无济于事。我已经尝试了无数次使用MS上的各种卸载程序进行卸载,在控制面板中添加删除程序以及MS SQL卸载媒体的过程。当我尝试使用安装媒体安装SQL Server 2017时,出现以下错误:

  

MOF编译器无法与WMI服务器连接。这是由于语义错误(例如与现有WMI存储库不兼容)或实际错误(例如WMI服务器无法启动)引起的。

error1

当我单击“确定”时,我立即收到另一个错误:

  

PerfLib 2.0计数器删除失败,并显示退出代码2。命令行:C:\ Program Files \ Microsoft SQL Server \ 140 \ Shared目录中的C:\ WINDOWS \ system32 \ unlodctr.exe/m:hkengperfctr.xml。

error2

启动SQL Server 2017 Configuration Manager时,我看到以下内容:

  

MMC无法创建管理单元。该管理单元可能未正确安装。名称:SQL Server配置管理器。 CLSID:{11E6488B-29AF-469D-9B9A-7A9048D36999}

enter image description here

以下是参考的日志文件:

这是sql_engine_core_inst_Cpu64_1日志

=== Verbose logging started: 5/21/2019  10:19:10  Build type: SHIP UNICODE 5.00.10011.00  Calling process: C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\SQL2017\x64\ScenarioEngine.exe ===
MSI (c) (68:14) [10:19:10:283]: Resetting cached policy values
MSI (c) (68:14) [10:19:10:283]: Machine policy value 'Debug' is 0
MSI (c) (68:14) [10:19:10:283]: ******* RunEngine:
           ******* Product: C:\Users\aryc\Downloads\SQLEXPRADV_x64_ENU\x64\setup\sql_engine_core_inst.msi
           ******* Action: 
           ******* CommandLine: **********
MSI (c) (68:14) [10:19:10:283]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (68:14) [10:19:10:283]: Grabbed execution mutex.
MSI (c) (68:14) [10:19:10:283]: Cloaking enabled.
MSI (c) (68:14) [10:19:10:283]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (68:14) [10:19:10:283]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (00:38) [10:19:10:299]: Running installation inside multi-package transaction C:\Users\aryc\Downloads\SQLEXPRADV_x64_ENU\x64\setup\sql_engine_core_inst.msi
MSI (s) (00:38) [10:19:10:299]: Grabbed execution mutex.
MSI (s) (00:38) [10:19:10:299]: Resetting cached policy values
MSI (s) (00:38) [10:19:10:299]: Machine policy value 'Debug' is 0
MSI (s) (00:38) [10:19:10:299]: ******* RunEngine:
           ******* Product: C:\Users\aryc\Downloads\SQLEXPRADV_x64_ENU\x64\setup\sql_engine_core_inst.msi
           ******* Action: 
           ******* CommandLine: **********
MSI (s) (00:38) [10:19:10:299]: Machine policy value 'TransformsSecure' is 0
MSI (s) (00:38) [10:19:10:299]: User policy value 'TransformsAtSource' is 0
MSI (s) (00:38) [10:19:10:299]: Machine policy value 'DisableUserInstalls' is 0
MSI (s) (00:38) [10:19:10:299]: Specified instance {36C9ADEE-91B0-4FFA-9CBA-9164CE6089D5} via transform :InstID02.mst;:InstName02.mst is already installed. MSINEWINSTANCE requires a new instance that is not installed.
MSI (s) (00:38) [10:19:10:299]: MainEngineThread is returning 1639
MSI (s) (00:38) [10:19:10:299]: User policy value 'DisableRollback' is 0
MSI (s) (00:38) [10:19:10:299]: Machine policy value 'DisableRollback' is 0
MSI (s) (00:38) [10:19:10:299]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (00:38) [10:19:10:299]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (00:38) [10:19:10:299]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (00:38) [10:19:10:299]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (68:14) [10:19:10:299]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (68:14) [10:19:10:299]: MainEngineThread is returning 1639
=== Verbose logging stopped: 5/21/2019  10:19:10 ===

这是Summary_aryc_20190521_101725日志

This is the Summary_aryc_20190521_101725 log

Overall summary:
  Final result:                  Failed: see details below
  Exit code (Decimal):           -2068052377
  Start time:                    2019-05-21 10:17:25
  End time:                      2019-05-21 10:38:21
  Requested action:              Install

Setup completed with required actions for features.
Troubleshooting information for those features:
  Next step for FullText:        Use the following information to resolve the error, and then try the setup process again.
  Next step for SQLEngine:       Use the following information to resolve the error, and then try the setup process again.


Machine Properties:
  Machine name:                  aryc
  Machine processor count:       8
  OS version:                    Microsoft Windows 10 Pro (10.0.17134)
  OS service pack:               
  OS region:                     United States
  OS language:                   English (United States)
  OS architecture:               x64
  Process architecture:          64 Bit
  OS clustered:                  No

Product features discovered:
  Product              Instance             Instance ID                    Feature                                  Language             Edition              Version         Clustered  Configured

Package properties:
  Description:                   Microsoft SQL Server 2017 
  ProductName:                   SQL Server 2017
  Type:                          RTM
  Version:                       14
  SPLevel:                       0
  Installation location:         C:\Users\aryc\Downloads\SQLEXPRADV_x64_ENU\x64\setup\
  Installation edition:          Express

Product Update Status:
  None discovered.

User Input Settings:
  ACTION:                        Install
  ADDCURRENTUSERASSQLADMIN:      true
  AGTSVCACCOUNT:                 NT AUTHORITY\NETWORK SERVICE
  AGTSVCPASSWORD:                *****
  AGTSVCSTARTUPTYPE:             Disabled
  ASBACKUPDIR:                   Backup
  ASCOLLATION:                   Latin1_General_CI_AS
  ASCONFIGDIR:                   Config
  ASDATADIR:                     Data
  ASLOGDIR:                      Log
  ASPROVIDERMSOLAP:              1
  ASSERVERMODE:                  TABULAR
  ASSVCACCOUNT:                  <empty>
  ASSVCPASSWORD:                 <empty>
  ASSVCSTARTUPTYPE:              Automatic
  ASSYSADMINACCOUNTS:            <empty>
  ASTELSVCACCT:                  <empty>
  ASTELSVCPASSWORD:              <empty>
  ASTELSVCSTARTUPTYPE:           0
  ASTEMPDIR:                     Temp
  BROWSERSVCSTARTUPTYPE:         Disabled
  CLTCTLRNAME:                   <empty>
  CLTRESULTDIR:                  <empty>
  CLTSTARTUPTYPE:                0
  CLTSVCACCOUNT:                 <empty>
  CLTSVCPASSWORD:                <empty>
  CLTWORKINGDIR:                 <empty>
  COMMFABRICENCRYPTION:          0
  COMMFABRICNETWORKLEVEL:        0
  COMMFABRICPORT:                0
  CONFIGURATIONFILE:             
  CTLRSTARTUPTYPE:               0
  CTLRSVCACCOUNT:                <empty>
  CTLRSVCPASSWORD:               <empty>
  CTLRUSERS:                     <empty>
  ENABLERANU:                    true
  ENU:                           true
  EXTSVCACCOUNT:                 <empty>
  EXTSVCPASSWORD:                <empty>
  FEATURES:                      SQLENGINE, FULLTEXT
  FILESTREAMLEVEL:               0
  FILESTREAMSHARENAME:           <empty>
  FTSVCACCOUNT:                  NT Service\MSSQLFDLauncher
  FTSVCPASSWORD:                 <empty>
  HELP:                          false
  IACCEPTPYTHONLICENSETERMS:     false
  IACCEPTROPENLICENSETERMS:      false
  IACCEPTSQLSERVERLICENSETERMS:  true
  INDICATEPROGRESS:              false
  INSTALLSHAREDDIR:              C:\Program Files\Microsoft SQL Server\
  INSTALLSHAREDWOWDIR:           C:\Program Files (x86)\Microsoft SQL Server\
  INSTALLSQLDATADIR:             <empty>
  INSTANCEDIR:                   C:\Program Files\Microsoft SQL Server\
  INSTANCEID:                    MSSQLSERVER
  INSTANCENAME:                  MSSQLSERVER
  ISMASTERSVCACCOUNT:            NT AUTHORITY\Network Service
  ISMASTERSVCPASSWORD:           <empty>
  ISMASTERSVCPORT:               8391
  ISMASTERSVCSSLCERTCN:          <empty>
  ISMASTERSVCSTARTUPTYPE:        Automatic
  ISMASTERSVCTHUMBPRINT:         <empty>
  ISSVCACCOUNT:                  NT AUTHORITY\Network Service
  ISSVCPASSWORD:                 <empty>
  ISSVCSTARTUPTYPE:              Automatic
  ISTELSVCACCT:                  <empty>
  ISTELSVCPASSWORD:              <empty>
  ISTELSVCSTARTUPTYPE:           0
  ISWORKERSVCACCOUNT:            NT AUTHORITY\Network Service
  ISWORKERSVCCERT:               <empty>
  ISWORKERSVCMASTER:             <empty>
  ISWORKERSVCPASSWORD:           <empty>
  ISWORKERSVCSTARTUPTYPE:        Automatic
  MATRIXCMBRICKCOMMPORT:         0
  MATRIXCMSERVERNAME:            <empty>
  MATRIXNAME:                    <empty>
  MRCACHEDIRECTORY:              
  NPENABLED:                     0
  PBDMSSVCACCOUNT:               <empty>
  PBDMSSVCPASSWORD:              <empty>
  PBDMSSVCSTARTUPTYPE:           0
  PBENGSVCACCOUNT:               <empty>
  PBENGSVCPASSWORD:              <empty>
  PBENGSVCSTARTUPTYPE:           0
  PBPORTRANGE:                   <empty>
  PBSCALEOUT:                    false
  PID:                           *****
  QUIET:                         false
  QUIETSIMPLE:                   false
  ROLE:                          AllFeatures_WithDefaults
  RSINSTALLMODE:                 DefaultNativeMode
  RSSVCACCOUNT:                  <empty>
  RSSVCPASSWORD:                 <empty>
  RSSVCSTARTUPTYPE:              Automatic
  SAPWD:                         *****
  SECURITYMODE:                  SQL
  SQLBACKUPDIR:                  <empty>
  SQLCOLLATION:                  SQL_Latin1_General_CP1_CI_AS
  SQLSVCACCOUNT:                 NT Service\MSSQLSERVER
  SQLSVCINSTANTFILEINIT:         false
  SQLSVCPASSWORD:                <empty>
  SQLSVCSTARTUPTYPE:             Automatic
  SQLSYSADMINACCOUNTS:           MAINMAN\aryc
  SQLTELSVCACCT:                 NT Service\SQLTELEMETRY
  SQLTELSVCPASSWORD:             <empty>
  SQLTELSVCSTARTUPTYPE:          Automatic
  SQLTEMPDBDIR:                  <empty>
  SQLTEMPDBFILECOUNT:            1
  SQLTEMPDBFILEGROWTH:           64
  SQLTEMPDBFILESIZE:             8
  SQLTEMPDBLOGDIR:               <empty>
  SQLTEMPDBLOGFILEGROWTH:        64
  SQLTEMPDBLOGFILESIZE:          8
  SQLUSERDBDIR:                  <empty>
  SQLUSERDBLOGDIR:               <empty>
  SUPPRESSPRIVACYSTATEMENTNOTICE: false
  TCPENABLED:                    0
  UIMODE:                        AutoAdvance
  UpdateEnabled:                 true
  UpdateSource:                  MU
  USEMICROSOFTUPDATE:            false
  X86:                           false

  Configuration file:            C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20190521_101725\ConfigurationFile.ini

Detailed results:
  Feature:                       Full-Text and Semantic Extractions for Search
  Status:                        Failed
  Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
  Next Step:                     Use the following information to resolve the error, and then try the setup process again.
  Component name:                SQL Server Database Engine Services Instance Features
  Component error code:          1639
  Component log file:            C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20190521_101725\sql_engine_core_inst_Cpu64_1.log
  Error description:             Invalid command line argument. Consult the Windows Installer SDK for detailed command line help.
  Error help link:               https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=14.0.1000.169&EvtType=sql_engine_core_inst.msi%400x162A16FE%400x1639

  Feature:                       Database Engine Services
  Status:                        Failed
  Reason for failure:            An error occurred during the setup process of the feature.
  Next Step:                     Use the following information to resolve the error, and then try the setup process again.
  Component name:                SQL Server Database Engine Services Instance Features
  Component error code:          1639
  Component log file:            C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20190521_101725\sql_engine_core_inst_Cpu64_1.log
  Error description:             Invalid command line argument. Consult the Windows Installer SDK for detailed command line help.
  Error help link:               https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=14.0.1000.169&EvtType=sql_engine_core_inst.msi%400x162A16FE%400x1639

Rules with failures:

Global rules:

Scenario specific rules:

Rules report file:               C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20190521_101725\SystemConfigurationCheck_Report.htm

很抱歉,您需要提供大量信息。我刚刚读了很多SO问题,人们在回答这些问题时希望获得尽可能多的信息。

-UPDATE -------------------------

好。这里有一些更多细节。环顾其他文章,我发现有些人指的是一个名为“ Windows Installer Clean Up”的工具。该工具似乎已被弃用。我知道为什么不...我从here下载并安装了它。一旦我运行它,它就会加载似乎已安装在我的计算机上的所有东西。我卸载了标题中任何地方引用SQL的所有内容。有大量重复项。我想这些伪装的存在是因为我多次尝试安装/卸载...谢谢,Microsoft,感谢您提供了可靠的卸载程序...请注意讽刺意味。

这样做之后,我删除了“程序文件(x86)”和“程序文件”目录中的MS SQL Server目录,然后重新启动计算机。我又安装了SQL Server。信不信由你,它通常不会出错。相反,它贯穿了整个安装过程,并在最后可能的时刻出错。当然可以!!!查看屏幕截图。

  

发生以下错误:无法处理请求,因为进程(13540)已退出。

error3

我又进行了一次维修,实际上我的SQL实例出现了。我进行了维修,这是一个有趣的消息,我实际上可以打开我的“ SQL Server 2017 Configuration Manager”,而不会出现管理单元错误。但是,我无法启动服务。我收到典型的“服务启动时间过长,请参阅日志”错误。

enter image description here

这是新的日志

Overall summary:
Final result:                  Failed: see details below
Exit code (Decimal):           -2068578302
Start time:                    2019-05-21 17:51:21
End time:                      2019-05-21 17:52:53
Requested action:              Repair

Setup completed with required actions for features.
Troubleshooting information for those features:
Next step for FullText:        Use the following information to resolve the error, and then try the setup process again.
Next step for SQLEngine:       Use the following information to resolve the error, and then try the setup process again.


Machine Properties:
Machine name:                  aryc
Machine processor count:       8
OS version:                    Microsoft Windows 10 Pro (10.0.17134)
OS service pack:               
OS region:                     United States
OS language:                   English (United States)
OS architecture:               x64
Process architecture:          64 Bit
OS clustered:                  No

Product features discovered:
Product              Instance             Instance ID                    Feature                                  Language             Edition              Version         Clustered  Configured
SQL Server 2017      MSSQLSERVER          MSSQL14.MSSQLSERVER            Database Engine Services                 1033                 Express Edition      14.0.1000.169   No         Yes       
SQL Server 2017      MSSQLSERVER          MSSQL14.MSSQLSERVER            Full-Text and Semantic Extractions for Search 1033                 Express Edition      14.0.1000.169   No         Yes       

Package properties:
Description:                   Microsoft SQL Server 2017 
ProductName:                   SQL Server 2017
Type:                          RTM
Version:                       14
SPLevel:                       0
Installation location:         C:\mc\Stuff\MSSQL\SQLEXPRADV_x64_ENU\x64\setup\
Installation edition:          Express

User Input Settings:
ACTION:                        Repair
AGTDOMAINGROUP:                <empty>
AGTSVCACCOUNT:                 <empty>
AGTSVCPASSWORD:                <empty>
AGTSVCSTARTUPTYPE:             Manual
ASCONFIGDIR:                   Config
ASSVCACCOUNT:                  <empty>
ASSVCPASSWORD:                 <empty>
ASTELSVCACCT:                  <empty>
ASTELSVCPASSWORD:              <empty>
ASTELSVCSTARTUPTYPE:           0
CLTSTARTUPTYPE:                0
CLTSVCACCOUNT:                 <empty>
CLTSVCPASSWORD:                <empty>
CONFIGURATIONFILE:             
CTLRSTARTUPTYPE:               0
CTLRSVCACCOUNT:                <empty>
CTLRSVCPASSWORD:               <empty>
ENU:                           true
EXTSVCACCOUNT:                 <empty>
EXTSVCPASSWORD:                <empty>
FAILOVERCLUSTERGROUP:          <empty>
FAILOVERCLUSTERNETWORKNAME:    <empty>
FTSVCACCOUNT:                  NT Service\MSSQLFDLauncher
FTSVCPASSWORD:                 <empty>
HELP:                          false
IACCEPTPYTHONLICENSETERMS:     false
IACCEPTROPENLICENSETERMS:      false
INDICATEPROGRESS:              false
INSTANCENAME:                  MSSQLSERVER
ISMASTERSVCACCOUNT:            NT AUTHORITY\Network Service
ISMASTERSVCPASSWORD:           <empty>
ISMASTERSVCPORT:               8391
ISMASTERSVCSSLCERTCN:          <empty>
ISMASTERSVCSTARTUPTYPE:        Automatic
ISMASTERSVCTHUMBPRINT:         <empty>
ISSVCACCOUNT:                  NT AUTHORITY\Network Service
ISSVCPASSWORD:                 <empty>
ISSVCSTARTUPTYPE:              Automatic
ISTELSVCACCT:                  <empty>
ISTELSVCPASSWORD:              <empty>
ISTELSVCSTARTUPTYPE:           0
ISWORKERSVCACCOUNT:            NT AUTHORITY\Network Service
ISWORKERSVCCERT:               <empty>
ISWORKERSVCMASTER:             <empty>
ISWORKERSVCPASSWORD:           <empty>
ISWORKERSVCSTARTUPTYPE:        Automatic
MRCACHEDIRECTORY:              
QUIET:                         false
QUIETSIMPLE:                   false
SQLSVCACCOUNT:                 NT Service\MSSQLSERVER
SQLSVCPASSWORD:                <empty>
SQLTELSVCACCT:                 NT Service\SQLTELEMETRY
SQLTELSVCPASSWORD:             <empty>
SQLTELSVCSTARTUPTYPE:          Automatic
SUPPRESSPRIVACYSTATEMENTNOTICE: false
UIMODE:                        AutoAdvance
X86:                           false

Configuration file:            C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20190521_175121\ConfigurationFile.ini

Detailed results:
Feature:                       Full-Text and Semantic Extractions for Search
Status:                        Failed
Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step:                     Use the following information to resolve the error, and then try the setup process again.
Component name:                SQL Server Database Engine Services Instance Features
Component error code:          0x84B40002
Error description:             The SQL Server feature 'SQL_Engine_Core_Inst' is not in a supported state for repair, as it was never successfully configured. Only features from successful installations can be repaired. To continue, remove the specified SQL Server feature.
Error help link:               https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=14.0.1000.169&EvtType=0x2841E06E%401204%402&EvtType=0x2841E06E%401204%402

Feature:                       Database Engine Services
Status:                        Failed
Reason for failure:            An error occurred during the setup process of the feature.
Next Step:                     Use the following information to resolve the error, and then try the setup process again.
Component name:                SQL Server Database Engine Services Instance Features
Component error code:          0x84B40002
Error description:             The SQL Server feature 'SQL_Engine_Core_Inst' is not in a supported state for repair, as it was never successfully configured. Only features from successful installations can be repaired. To continue, remove the specified SQL Server feature.
Error help link:               https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=14.0.1000.169&EvtType=0x2841E06E%401204%402&EvtType=0x2841E06E%401204%402

Feature:                       SQL Browser
Status:                        Passed

Feature:                       SQL Writer
Status:                        Passed

Feature:                       SQL Client Connectivity
Status:                        Passed

Feature:                       SQL Client Connectivity SDK
Status:                        Passed

Feature:                       Setup Support Files
Status:                        Passed

Rules with failures:

Global rules:

There are no scenario-specific rules.

Rules report file:               C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20190521_175121\SystemConfigurationCheck_Report.htm

1 个答案:

答案 0 :(得分:0)

为我自己的问题提供答案。请根据上下文查看上述问题,因为我将无法提供根本原因。

  1. 下载已弃用的“ Windows Installer清理”实用程序后,我安装并运行它,并删除了标题中包含SQL的所有内容。

  2. 我再次安装了SQL Server。如上所述,我确实遇到了另一个错误,但这一次是在安装进度的最后

  3. 我进入“控制面板”->“程序和功能”,发现列表中实际上是“ Microsoft SQL Server 2017(64位)”。所以我卸载了它。但是,在安装结束时,它做了以前没有做过的事情。它显示了已卸载的每个项目的列表,并列出了所有适当的项目。而且...我没有收到错误。此外,SQL配置管理器也已删除。进度。

  4. 我从程序文件和程序文件(x86)中删除了SQL Server文件夹,并重新安装了SQL Server。

  5. 安装过程非常顺利,现在我有了一个可靠的SQL Server Express实例。

同样,我不知道为什么这样做了,也没有根本原因。但是,我确实安装了Visual Studio 2019(从2017年升级),并且只能猜测VS Studio安装的SQL安装与我尝试安装SQL Server Express的冲突。