[debian-mysql] Bug#751833: will get Can't connect to local MySQL server through socket upon stop unless at least one command is used

積丹尼 Dan Jacobson jidanni at jidanni.org
Tue Jun 17 04:18:43 UTC 2014


Package: mysql-server-5.5
Version: 5.5.37-1

Please try the following experiment:
# /etc/init.d/mysql start
[ ok ] Starting MySQL database server: mysqld . . ..
[info] Checking for tables which need an upgrade, are corrupt or were 
not closed cleanly..
# /etc/init.d/mysql stop
[....] Stopping MySQL database server: mysqldERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to l...
. ok


The workaround it to issue at least one connection even if very brief,

#  mysql --user=root --password=...
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 62
Server version: 5.5.37-1 (Debian)

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> exit;
Bye


between the start and stop.



More information about the pkg-mysql-maint mailing list