NuCivic / ansible-dev-vm

8 stars 5 forks source link

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

Closed topicus closed 9 years ago

topicus commented 9 years ago

When provision runs I'm getting:

failed: [nucvicdev] => {"changed": false, "cmd": ["mysql", "-NBe", "SELECT Host FROM mysql.user WHERE User = \"root\" ORDER BY (Host=\"localhost\") ASC"], "delta": "0:00:00.007756", "end": "2015-07-13 21:38:08.005020", "rc": 1, "start": "2015-07-13 21:38:07.997264", "stdout_lines": [], "warnings": []}
stderr: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

FATAL: all hosts have already failed -- aborting
topicus commented 9 years ago

Solution: ansible-galaxy install -r requirements.txt