You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 28, 2018. It is now read-only.
When using non-alphanumeric credentials, migrate fails to connect. database/mysql/mysql.go#L93 calls migrate.FilterCustomQuery(purl).String() which in turn calls url.UserInfo.String(). url.UserInfo.String() ends up escaping the password resulting in an access denied error.
Input
The password in question is password&[.
I run the migrate tool using.
migrate -path migrations -database 'mysql://test:password&[@tcp(localhost:3306)/test' up
Output
error: Error 1045: Access denied for user 'test'@'localhost' (using password: YES)
The text was updated successfully, but these errors were encountered:
Problem
When using non-alphanumeric credentials, migrate fails to connect. database/mysql/mysql.go#L93 calls
migrate.FilterCustomQuery(purl).String()
which in turn callsurl.UserInfo.String()
.url.UserInfo.String()
ends up escaping the password resulting in an access denied error.Input
The password in question is
password&[
.I run the migrate tool using.
Output
The text was updated successfully, but these errors were encountered: