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

Asked by yexian

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:
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
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!

Revision history for this message
yexian (yexianwolail) said :
#3

Thanks Fabrizio Soppelsa, that solved my question.