Web 平台安装程序和 sql Express 数据库设置

发布于 2024-08-19 20:26:17 字数 532 浏览 6 评论 0原文

我今天尝试使用 Web 平台安装程序安装 Amplifeeder。

当我到达数据库设置时,我必须填写一些信息,例如“数据库管理员用户/密码”和用户用户名/密码。

使用 SQL Express 我没有任何用户名/密码(无论是管理员还是用户)。我应该如何使用 WPI 和 SQL Express 2008 安装应用程序?

基本上我在尝试在日志中安装时遇到了这个错误:

DownloadManager Error: 0 : MS Deploy exception: Microsoft.Web.Deployment.DeploymentClientServerException: The database 'AmpliFeederDB' could not be created. ---> System.Data.SqlClient.SqlException: Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection.

I tried to install Amplifeeder today with the Web Platform Installer.

When I arrived at the database setup I had to fill out some informations like "db admin user/password" and user username/password.

Using SQL Express I do not have any username/password (neither admin or user). How should I be able to install applications with the WPI and SQL Express 2008 ?

Basically I had this error while trying to install in the logs :

DownloadManager Error: 0 : MS Deploy exception: Microsoft.Web.Deployment.DeploymentClientServerException: The database 'AmpliFeederDB' could not be created. ---> System.Data.SqlClient.SqlException: Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

故乡的云 2024-08-26 20:26:17

我终于通过命令行和注册表修复实现了这一点。

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQLServer

LoginMode 必须为 2

重新启动 SQL Server Express 服务。

然后 :
在命令行中:

sqlcmd -E -S .\SQLEXPRESS (will login with windows authentication mode)

1) ALTER LOGIN sa WITH PASSWORD = '<new_password>'
2) GO
1) ALTER LOGIN sa ENABLE
2) GO

之后安装应用程序应该可以解决问题。

I finally achieved this by command line and reg fixes.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQLServer

LoginMode must be 2

restart SQL Server Express service.

Then :
In command line :

sqlcmd -E -S .\SQLEXPRESS (will login with windows authentication mode)

1) ALTER LOGIN sa WITH PASSWORD = '<new_password>'
2) GO
1) ALTER LOGIN sa ENABLE
2) GO

It should do the trick to install the applications after.

难忘№最初的完美 2024-08-26 20:26:17

据我所知,使其工作的唯一方法是使用位于应用程序文件夹中的命令行实用程序“WebPICmd.exe”。

您确实需要一个强密码,因为它使用正则表达式进行验证。

一切似乎都正常,我能够通过 OSQL 和 Management Studio 访问数据库,登录没有问题,启用了身份验证、TCP/IP 和命名管道。但没有任何效果...这似乎是某种错误....

像他一样尝试:

WebPICmd.exe /Install /Application:"Joomla"

As far as I know the only way I could make it work was by using the command line utility 'WebPICmd.exe' located in the application folder.

You do need a strong password because it uses a regular expression to verify.

All seemed OK, I was able to access the DB thru OSQL and also Management Studio, had no problems with logons, had both authentications enabled, TCP/IP and named pipes. yet nothing worked... It seems to be some kind of a bug....

Thry it like his:

WebPICmd.exe /Install /Application:"Joomla"

谈下烟灰 2024-08-26 20:26:17

当您第一次安装 SQL Server Express 时,您可以选择身份验证模式,其中您可以选择混合模式身份验证并提供管理员身份验证详细信息。

When you install SQL Server Express for the first time, you would have had option to select authentication mode, where you would select MIXED mode authentication and provide admin authentication details.

烟凡古楼 2024-08-26 20:26:17

那么,SQL Server Management Studio Express 提供了更可持续的解决方案。请参阅此链接,而无需摆弄注册表项和运行命令:

http:// /www.knowledgesutra.com/forums/topic/61695-resolving-cant-login-to-sqlexpress-using-sa-account/

Well, the SQL Server Management Studio Express provides a more sustainable solution. See this link, without having to fiddle with registry keys & running commands:

http://www.knowledgesutra.com/forums/topic/61695-resolving-cant-login-to-sqlexpress-using-sa-account/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文