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

通过命令行配置 -test-dsn参数时,无法正确解析密码含有'@','!'符号的MySQL串 #16

Closed
iodherror opened this issue Oct 22, 2018 · 3 comments
Labels
documentation issues about document

Comments

@iodherror
Copy link

mysql串密码带有!会直接报错。
image
image

带有@号时会解析错误。
image
image

@martianzhang
Copy link
Contributor

账号密码中如包含特殊符号可在配置文件中设置。命令行使用的DSN格式先天对特殊字符不友好。yaml配置没有这类问题。我们会在文档中进一步说明

@martianzhang martianzhang added the documentation issues about document label Oct 22, 2018
@wangmin19861205
Copy link

配置成文件还是存在该问题
image
image

@iodherror
Copy link
Author

我这使用配置文件也一样有问题。
看了下代码,这个是config.go里面的逻辑有问题导致的。
可以自己先简单修正一下。

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

No branches or pull requests

3 participants