閱讀714 返回首頁    go 技術社區[雲棲]


error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)&#

 [root@luozhonghua ~]#   /usr/bin/mysqladmin -u root password 'aaaaaa'
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
解決:
1》/etc/rc.d/init.d/mysqld status 看看mysql是否已經啟動
2》service mysqld start

最後更新:2017-04-03 05:39:17

  上一篇:go c語言之內存掃描
  下一篇:go py 元組與列表