Looking at the error message it seems it's looking for socket file in the wrong place.
Cheers
Marco
I used the following lines in my cookbookmysql_service 'default' dobind_address '0.0.0.0'initial_root_password 'password'action [:create, :start]endAnd here is the my.cnf# Chef generated my.cnf for instance mysql-default[client]default-character-set = utf8port = 3306socket = /run/mysql-default/mysqld.sock[mysql]default-character-set = utf8[mysqld]user = mysqlpid-file = /run/mysql-default/mysqld.pidsocket = /run/mysql-default/mysqld.sockbind-address = 0.0.0.0port = 3306datadir = /var/lib/mysql-defaulttmpdir = /tmplog-error = /var/log/mysql-default/error.log!includedir /etc/mysql-default/conf.d[mysqld_safe]socket = /run/mysql-default/mysqld.sockBut I am unable to login:mysql -u mysql -pEnter password:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'I have also tried login 'root' and it did not work either.What did I miss in my cookbook?Cheers, Tony
Archive powered by MHonArc 2.6.16.