Skip to content

Commit

Permalink
Fix the mysql url
Browse files Browse the repository at this point in the history
Diesel uses libmysqlclient internally, which tries to be clever by using
a unix socket instead of a network socket if it
sees a database url that contains `localhost` as a host name. That won't
work in this case, as the db is running in a docker container. This
change switches to use `127.0.0.1` as host instead which forces the
usage of a network socket.
  • Loading branch information
weiznich authored and maxcountryman committed Oct 18, 2023
1 parent 9868308 commit a476b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
REDIS_URL: redis://localhost:6379/1
MONGODB_URL: mongodb://localhost:27017
POSTGRES_URL: postgres://postgres:postgres@localhost:5432
MYSQL_URL: mysql://root@localhost:3306/public
MYSQL_URL: mysql://root@127.0.0.1:3306/public

jobs:
check:
Expand Down

0 comments on commit a476b8b

Please sign in to comment.