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
goose version: 3.13.4
mysql Ver 8.0.33 for macos12.6 on x86_64 (Homebrew)
Both were installed via Homebrew.
The database diy_db exists and is currently empty.
A normal MySQL connection string usually looks like
mysql://root:rootPW@localhost:3306/diy_db
I have a couple of other apps, such as atlas, that use this without error. I also have apps that use the /tmp/mysql.sock without issue.
I have tried several iterations:
// From example in the docs:
goose mysql "root:rootPW@/diy_db?parseTime=true" status
// Using a socket
goose mysql "root:rootPW@unix(/tmp/mysql.sock)/diy_db?parseTime=true" status
//Using TCP:
goose mysql "root:rootPW@tcp(127.0.0.1:3306)/diy_db" status
goose mysql "root:rootPW@tcp:127.0.0.1:3306/diy_db" status
// Because everything is optional except the db name
goose mysql "/diy_db" status
I get the same message every time:
invalid DSN: missing the slash separating the database name with all of these.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Both were installed via Homebrew.
The database
diy_db
exists and is currently empty.A normal MySQL connection string usually looks like
I have a couple of other apps, such as atlas, that use this without error. I also have apps that use the
/tmp/mysql.sock
without issue.I have tried several iterations:
I get the same message every time:
The strings I've pasted are all literal.
What am I missing?
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions