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

Login Fails with * in password #42

Closed
bmritz opened this issue Oct 30, 2023 · 4 comments
Closed

Login Fails with * in password #42

bmritz opened this issue Oct 30, 2023 · 4 comments

Comments

@bmritz
Copy link

bmritz commented Oct 30, 2023

Hello,

I tried to run sling conns discover MY_SQLSERVER_DB, but the command is failing with the error:

$ sling conns discover MY_SQLSERVER_DB
fatal:
~
~ could not discover MY_SQLSERVER_DB (See https://docs.slingdata.io/sling-cli/environment)
~ could not connect to MY_SQLSERVER_DB
~ could not connect to database
mssql: login error: Login failed for user 'britz'.

My ~/.sling/env.yaml looks like this:

connections:
  MY_SQLSERVER_DB:
    type: sqlserver
    url: 'sqlserver://britz:<pw-redacted>@<host-redacted>:1433/<db-redacted>'

variables: {}

My Password does have a * in it, and I think that may be what is throwing things off. I believe this is the case because I tried another connection with a SQL Server Database, with a similar env.yaml, but my password in that database does not have a * in it, and that does work.

@flarco
Copy link
Collaborator

flarco commented Oct 30, 2023

Hey there. Can you try with the key: value approach instead of URL?
See docs here.

connections:
  MY_SQLSERVER_DB:
    type: sqlserver
    host: '<host>'
    user: 'britz'
    database: '<database>'
    password: '<password>'
    port: 1433

@bmritz
Copy link
Author

bmritz commented Oct 30, 2023

That did work! Thank you!

I needed to add in the key value pair type: sqlserver as well, but that did discover the source correctly. Thank you!

@flarco
Copy link
Collaborator

flarco commented Oct 30, 2023

Ah yes, thanks, forgot that part 👍, fixed retroactively.

@flarco flarco closed this as completed Oct 30, 2023
@bmritz
Copy link
Author

bmritz commented Oct 30, 2023

Thanks for the quick response! Great project!

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