ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2

Asked by yexian on 2016-01-26

on thn controller node
restart mysql service,mysql not work :
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Question information

Language:
English Edit question
Status:
Solved
For:
Fuel for OpenStack Edit question
Assignee:
No assignee Edit question
Solved by:
Fabrizio Soppelsa
Solved:
2016-03-23
Last query:
2016-03-23
Last reply:
2016-01-29
Best Fabrizio Soppelsa (fsoppelsa) said : #1

Yexlan,

if this is a HA environment, you should restart mysql by using Pacemaker's tools, like pcs.

Best regards,
Fabrizio
Mirantis Team

yexian (yexianwolail) said : #2

Thinks Fabrizio Soppelsa!

I am watching a mirantis arg - 7.0 named < < Operations Guide > > the operation and maintenance of documents, document describes start msyql use:
/usr/lib/ocf/resource.d/fuel/mysql-wss start
 this is fail!
Using
crm rsource start (restart) clone_p_mysql
 is ok!

yexian (yexianwolail) said : #3

Thanks Fabrizio Soppelsa, that solved my question.