https://slingdata.io logo
hey guys, having trouble with a password
# sling-help
b
hey guys, having trouble with a password that has a dollar sign in the yaml env file, I cannot get it to work but it works under environment variables. I tired quotes, and double $$, I just not sure how sling interprets the dollar sign.
f
hey @bambafaust , what connector are you using? you may have to encode the dollar sign if you're making it part of the URL (https://www.urlencoder.org/, put
%24
instead of
$
)
b
mysql
it's in the yaml .env file
Copy code
connections:
  AWS_MYSQL:
    type: mysql
    database: 
    host: 
    password: $ password is here
    user:
I had issues with docker before and quotes worked
f
can you try:
Copy code
AWS_MYSQL:
    url: "mysql://myuser:mypass%24@host.ip:3306/mydatabase"
I put
%24
instead of
$
b
I will try that
I will let you know
that worked in the url
so, just don't use the type=mysql connection
f
yeah, it accepts both. But did you try
password: $ password is here
, but with
%24
instead of
$
?
b
that didn't work under type=mysql but it does work under url one