vendredi 14 juillet 2017

rake db:create works, rails dbconsole works, rake db:migrate/db:seed/test fail

When I try to use a rake task that isn't rake db:create that uses a DB connection (ie rake db:migrate) Connection refused - sendto(2) for "127.0.0.1" port 9999

Inexplicably, it tries to connect on non-default port (9999) that, as far as I can tell, not in the config (ie config/database.yaml) . When I change MySQL to use this port, I get a slightly different error: Mysql2::Error: Can't connect to MySQL server on '127.0.0.1' (61)

MySQL server is a vanilla homebrew install, if that matters (whole thing is running on MacOS 10.12.3)

Aucun commentaire:

Enregistrer un commentaire