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
I want to use "/" in the DSN for the database name, such as xxx/yyy, but I get the error invalid DSN: did you forget to escape a param value? .
Using url.Escape () will evaluate the database name as xxx%2Fyyy.
How should I solve it?
I use go-sql-driver through golang-migrate/migrate library.
Example code
sql.Open("mysql", "user@tcp(host:port)/xxxx/yyy")
Error log
invalid DSN: did you forget to escape a param value?