I have a problem with my mysql-server in vagrant. Everytime i restart my vagrant box with vagrant reload
or vagrant up
i get this confusing error.
My vagrant box is this one here: ubuntu/trusty64
from
Vagrant-Boxes
This error has been answered already several times here and at askubuntu.
but i want to know why only this code works for me:
su - mysql -s /bin/sh -c "/usr/bin/mysqld_safe > /dev/null 2>&1 &"
the code is from the file mysql*
at /etc/init.d/mysql
.
can anyone explain what the code means?
all this answeres did not help me for explanation from here:
mysql 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'
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)