When you got the server running via
mysql.server start
you should see the socket in /tmp/mysql.sock. However, the system seems to expect it in /var/mysql/mysql.sock. To fix this, you have to create a symlink in /var/mysql:
sudo mkdir /var/mysql
sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
from : https://stackoverflow.com/questions/15016376/cant-connect-to-local-mysql-server-through-socket-homebrew
沒有留言:
張貼留言