Caching mysql gem error

Im trying to use the new CCI version 2 to test+deploy my project.
Im facing this weird behaviour when Im caching the gems. If I run my project without using gems cached everything works fine. But when using the cached gems, I get this error from mysql gem:

   <Mysql2::Error: Can't connect to MySQL server on '' (111)>
    Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "pool"=>2, "username"=>"root", "password"=>"mysql", "host"=>"", "database"=>"main_test"}, {:charset=>"utf8"}
    (If you set the charset manually, make sure you have a matching collation)

Im using circleci/ruby:2.4.1-node-browsers image.

Couldnt find anything in the docs or forums… Anybody experienced that issue before?

thanks in advance!

I’m experiencing exactly the same error.

and it seems I’ll need to change to a paid plan to get it solved :frowning:
couldn’t find any help on forum or google