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.
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.
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"
当您第一次安装SQL Server Express时,您可以选择身份验证模式,您可以在其中选择MIXED模式身份验证并提供管理身份验证详细信息。
Well, the SQL Server Management Studio Express provides a more sustainable solution. See this link, without having to fiddle with registry keys & running commands:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.