I'm using a mysql docker container on MacOS. There's a weird issue that happens when I try to connect to my database. If I use this connection string "db:mysql://root@localhost/mydb" I get an error:
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
If I switch "localhost" with "127.0.0.1" then it will work.
Is this a bug in MySQL/sqitch?
Is there a reason for this difference?
Are the perl libraries/database drivers programmed to assume that localhost means a socket?
Where do you look this up?
Maybe this should be documented because it is really confusing?