jeudi 5 mars 2015

Rails integration test: Mysql2::Error: Can't connect to MySQL server

Lately I am working on my beautiful tests, but suddenly, after a 2 days rest, I ran again my integration tests (rake test:integration) and they don't work anymore. I really didn't do anything.


What comes is the following error:


Mysql2::Error: Can't connect to MySQL server on '192.168.0.2'


The nice thing is that the server runs fine. It is just the integration test that is broken. And they use the same mysql database.


Any idea on how to solve the problem?


Luca


Aucun commentaire:

Enregistrer un commentaire