Skip to content

"Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'" #6842

Description

@danielbachhuber

My builds are failing on this error:

mysql -e 'CREATE DATABASE wp_cli_test;' -uroot
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

See https://travis-ci.org/wp-cli/wp-cli/jobs/174318358 for a representative job.

This issue is specific to Travis CI and new within the last ~8 hours. Happy to help debug further if you'd like to point me in a direction.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions