积极答复者
如何更改管理中心的数据库链接字符串

问题
答案
-
您好,
对于你的服务器,虽然IP是变化的,但是机器名是固定的。所以你可以尝试使用 'servername\sqlexpress' 作为连接字符串。
- 已标记为答案 song hai tao 2011年10月26日 3:27
全部回复
-
您好,
对于你的服务器,虽然IP是变化的,但是机器名是固定的。所以你可以尝试使用 'servername\sqlexpress' 作为连接字符串。
- 已标记为答案 song hai tao 2011年10月26日 3:27
-
可以通过stsadm命令,如下:
stsadm -o deleteconfigdb
stsadm –o setconfigdb -connect –databaseserver target_SQL_server -databasename databasename -farmuser your_farm_sql_account -farmpassword your_farm_sql_passwordhttp://technet.microsoft.com/en-us/library/cc287720(office.12).aspx
请在操作之前备份好配置数据库。
-
你好,Wayne Fan,
我查了下psconfig命令,我先断开现有链接:psconfig -cmd configdb -disconnect,然后再链接到现有的数据库:psconfig -cmd configdb -connect -server 192.168.2.25\sqlexpress -database SharePoint_Config -passphrase pass@word1,(这样做没有删除现有数据库)这样报个错误”与 configdb 命令一起指定的 server 参数无效。未能连接到位于指定 数据库服务器 和 数据库名称 上的现有服务器场。数据库名称 不是有效的配置数据库“。你的意思是删除现有数据库再重新?还是……,麻烦你再帮我看看。
Thanks
songhaitao -
Hi,small targer,
这种做法我试了下,还是不行,把注册表改了后,我还重新运行了配置向导,还报了个错误。
错误信息:
未能初始化升级序列。已引发类型为 System.Data.SqlClient.SqlException 的异常。其他异常信息: 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: SQL 网络接口, error: 26 - 定位指定的服务器/实例时出错) System.Data.SqlClient.SqlException: 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: SQL 网络接口, error: 26 - 定位指定的服务器/实例时出错) 在 System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) 在 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) 在 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) 在 System.Data.SqlClient.SqlConnection.Open() 在 Microsoft.SharePoint.Utilities.SqlSession.OpenConnection() 在 Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior, SqlQueryData monitoringData, Boolean retryForDeadLock) 在 Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command, Boolean retryForDeadLock) 在 Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command) 在 Microsoft.SharePoint.Administration.SPConfigurationDatabase.ResolveObjectAndClassVersions(SPLog log) 在 Microsoft.SharePoint.Upgrade.SPManager.BootStrap(Guid sessionId, SPUpgradeOperationFlags flags) 在 Microsoft.SharePoint.PostSetupConfiguration.UpgradeBootstrapTask.Run() 在 Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()
还有人说是改IIS里面的数据库设置,我改了也不行,麻烦你再帮我想想是哪里的问题。
Thanks
songhaitao