使用New-SPConfigurationDatabase为sharepoint创建新的配置数据库时出错

时间:2017-12-22 21:34:48

标签: sql-server windows sharepoint sql-server-2008-r2 sharepoint-2010

我想要设置SharePoint 2010和SQL Server 2008.当我想使用此命令创建新的配置数据库时:

    New-SPConfigurationDatabase -DatabaseName "SPConfigDB" -AdministrationContentDatabaseName "SPAdminContentDB" -DatabaseServer "DESKTOP-54TIM0H\dadkh" -Passphrase (ConvertTo-SecureString "mypass" -AsPlainText -force) -FarmCredentials (Get-Credential)

run it in SharePoint 2010 Management Shell I have error:

New-SPConfigurationDatabase : Cannot connect to database master at SQL server at DESKTOP-54TIM0H\dadkh. The database migh
t not exist, or the current user does not have permission to connect to it.
At line:1 char:28
+ New-SPConfigurationDatabase <<<<  -DatabaseName "SPConfigDB" -AdministrationContentDatabaseName "SPAdminContentDB" -Dat
abaseServer "DESKTOP-54TIM0H\dadkh" -Passphrase (ConvertTo-SecureString "mypass" -AsPlainText -force) -FarmCredent
ials (Get-Credential)
    + CategoryInfo          : InvalidData: (Microsoft.Share...urationDatabase:SPCmdletNewSPConfigurationDatabase) [New-S
   PConfigurationDatabase], SPException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSPConfigurationDatabase

follow this guide但问题没有解决。

database list

我创建了一个名为&#34; SPConfigDB&#34;的数据库。但没有结果。

1 个答案:

答案 0 :(得分:0)

问题是IIS! 我检查IIS的状态,它没有激活!所以我启用它并解决了问题!