i'm trying to use the mysql service following instructions, but my rails tests fails because they can't connect:
#<Mysql2::Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)>
Couldn't create database for {"adapter"=>"mysql2", "database"=>"pipelines", "username"=>"test_user", "password"=>"test_user_password", "host"=>"localhost", "port"=>3306}, {:charset=>"utf8", :collation=>"utf8_unicode_ci"}
this is the relevant pipeline configuration:
services:
- mysql
definitions:
services:
mysql:
image: mysql
environment:
MYSQL_DATABASE: pipelines
MYSQL_ROOT_PASSWORD: my-secret-pw
MYSQL_USER: test_user
MYSQL_PASSWORD: test_user_passwordand this is the database.yml:
test:
adapter: mysql2
database: pipelines
username: test_user
password: test_user_password
host: localhost
port: 3306
from the pipeline log the mysql instance seems to run OK, so i'm probably doing something wrong, any idea?
Thanks
Francesco