[chef] Re: Unable to connect to the mysql database server


Chronological Thread 
  • From: "Julian C. Dunn" < >
  • To:
  • Subject: [chef] Re: Unable to connect to the mysql database server
  • Date: Sun, 15 Feb 2015 11:11:29 -0500 (EST)
  • Organization: Aquezada Productions

On Sun, 15 Feb 2015, Anthony Kong wrote:

But I am unable to login:

mysql -u mysql -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock'

Seems like your mysql binary assumes the socket is in this location whereas your recipe set up my.cnf to have the socket in /run/mysql-default/mysqld.sock .

- Julian



Archive powered by MHonArc 2.6.16.

§