-
Notifications
You must be signed in to change notification settings - Fork 10.3k
How to connect to mssql Database in docker container [question] #686
Comments
The way you are providing the port to SQL Server Management Studio is wrong. 192.168.1.9,5433 If the IP and port are right, it should work. Take a look for instance to this file (this is from eShopOnContainers) and the way we compose the connection string: A sample conn string used provided as environment variable is: Note how the SQL Server name is simply "sql.data" which in our case is the name of the service/container for SQL specified in the docker.compose files. Hope it helps. |
Thank you, this server log in Identity.API container : |
Hi. Could you send them? (Just use docker logs ) |
dbug: IdentityServer4.EntityFramework.Stores.ClientStore[0] |
Hi
If you open an interactive session agains Identity server ( |
Hi @minhvc, Those addresses are taken from the ClientRedirectUris table in the Identity database and that table is initialized upon startup, taking the initial values from appsettings.json in Identity.API. So, this should be solved by one of these options:
This would be the records to update: Hope this helps. |
Closing this issue, feel free to comment though, will reopen if necessary. |
I tried to log in for an hour. I was trying to log in with a dot instead of a comma. I already thought it was a problem with my computer haha. thanks for you help! |
In appsettings.json of Identity.API project has connection string
ConnectionString": "Server=tcp:127.0.0.1,5433;Database=Microsoft.eShopOnContainers.Services.IdentityDb;User Id=sa;Password=Pass@word;"
When I build eShopContainer in server at IP 192.168.1.9
But I can not connect to mssql DB at 192.168.1.9:5433.
I used Navicat Premium and MS Management Studio, the result is the same
How can I fix it? Thanks
The text was updated successfully, but these errors were encountered: