I am trying to deploy my application to AWS, when I delete Migration folder, and type Enable-Migration and change AutomaticMigrationEnable = true; After that I go to Publish to AWS, after couple of minutes I got error
Login failed for user 'DESKTOP-0L8HK6U\denni'.
Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_EXECUTING_METHOD.
Failed to connect to server DESKTOP-0L8HK6U\SQLEXPRESS.
Cannot open database "MojaBaza" requested by the login. The login failed.
Login failed for user 'DESKTOP-0L8HK6U\denni'.
Connection String for Amazon
<connectionStrings>
<add name="Jericho" connectionString="Data Source=demodb.c5sevdrlkzev.us-west-2.rds.amazonaws.com,1433;User ID=user;Initial Catalog=user;Password=user123;MultipleActiveResultSets=true"/>
</connectionStrings>
Database connection
<connectionStrings>
<add name="Jericho" connectionString="Data Source=(localdb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\Jericho.mdf; Integrated Security=True;MultipleActiveResultSets=true" providerName="System.Data.SqlClient"/>
</connectionStrings>
I don't know why is looking for database called MojaBaza. Where I made mistake guys ? Any help ?
检查您的 rds 的安全组,其中 CIDR /IP - 入站规则可能会更改使其 0.0.0.0/0 这解决了我的问题希望它有用
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.