Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to connect mssql from Linux centos #545

Open
shiva1232 opened this issue Apr 6, 2022 · 1 comment
Open

unable to connect mssql from Linux centos #545

shiva1232 opened this issue Apr 6, 2022 · 1 comment

Comments

@shiva1232
Copy link

I am trying to connect for automation from Linux centos VM to windows MSSQL servers below .

mssql-cli -S XXXXXXX,1433 -U pamus-adm -d
Password:
Error message: Login failed for user 'pamus-adm'.

user account(pamus-adm) has access. I am able to log in manually. How to troubleshoot and fix. Please help.

@greenseeker
Copy link

It looks like you may be using a Windows-style server argument whereas Linux just uses hostname. Try -S localhost if you're running it from the database server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants