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

Invalid parsing of connection url #147

Open
piotr-placzek opened this issue Dec 18, 2024 · 3 comments
Open

Invalid parsing of connection url #147

piotr-placzek opened this issue Dec 18, 2024 · 3 comments

Comments

@piotr-placzek
Copy link

piotr-placzek commented Dec 18, 2024

I just download and run latest release binary file.
I'm trying to connect with my base using url:
mysql://user:pass@localhost:3008/dev

I've got message:

parse mysql://user:pass@localhost:3008/dev": invalid port "pass" after host

It's even can't be saved.

@jorgerojas26
Copy link
Owner

Please be sure your password does not contain special characters, if it does, URL parse it.

@piotr-placzek
Copy link
Author

piotr-placzek commented Dec 19, 2024

You are right. Password contains small and big letters, numbers and special characters. I think it is standard policy today.

@edit
I don't know GO but I looked at the code and I suppose the problem may be in the https://github.com/xo/dburl implementation 🤔 Destructing strings usually isn't hard, maybe it will be good idea to add password to url encoding (?)

@edit
Url encoded password works and brings me another problem. Connection refused.
Where can I find some logs? Other "standard" clients connect to this db without any problems.

Btw I think that you did great job! I'm basically work only with terminals so I hope it will work :)

@jorgerojas26
Copy link
Owner

Glad it worked.

For the "Connection refused", looks like the port is not correct. Also, check credentials.

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