Open ghost opened 3 years ago
I had a login fail too, though the reason was password related:
Login failed for user 'sa'. Reason: Password did not match that for the login provided. [CLIENT: 172.21.0.1]
error messages when trying to connect. Changed passwords a million times, but in the end I finally found my problem, and solved it:
volumes:
- "./data-mssql:/var/opt/mssql/data"
was what caused my issue. I'm completely new to docker, but I think maybe it recovered from old data, and therefore also copied an old password. I removed the folder "./data-mssql/" and re-composed, and then I was able to connect properly.
Initially I had set a bad password with:
SA_PASSWORD: "password"
because I didn't realize it needed to be more complex, and I think it persisted through to the next docker images.
Reproduce?
SA_PASSWORD: "password"
and
volumes:
- "./data-mssql:/var/opt/mssql/data"
That was my issue as well, thanks for the tip bjothorl.
Hi guys, I come here for help, Thanks for those who will help me in advance! The thing I want to do is to run a sqlserver docker container instance on my host, so that I can connect to it using Azure Data Studio.
Environment:
I followed the official tutorial to setup the container, after finishing this, I can connect to sqlserver in my container.
But this is not what I want, as I said(The thing I want to do is to run a sqlserver docker container instance on my host, so that I can connect to it using Azure Data Studio.), I need to connect to it from my host with Azure Data Studio. To test the connectivity(port mapping or something) between host and container, I decided to install mssql-tool(sqlcmd) on my host and try connecting to the container.
You can see that I successfully connect to it with sqlcmd from host, Then I think everything is fine, I can try connecting to it using Azure Data studio.
Login failed for user 'SA'.
Here is the detailed error information:I checked this issue, but still don't know how to work it out. And I also googled a lot and watched a lot of youtube videos, including the official video tuorial. I felt so confused, it seemed that the lecturer did not do anything special and the connectivity was totally fine.
And there is one thing I am curious about: when I enter the docker container to use systemctl to check the status of the server, I got this: (I know the mssql image does not include systemctl, I enter the container as ROOT and have it installed )
I don't know why the status is inactive... :( Again, Thx for your help and take cate :)