2015년 9월 19일 토요일

ERROR 2002 (HY000): Can't connect to local MySQL server through socket

mysql-errorThe post will show how to solve the above error.

MySql-sql-join-multiple-database-tables-logo-490x196Steps

– Is mysql starting properly when you run /usr/local/bin/safe_mysqld?
If so:
Verify the /tmp/mysql.sock file exists.
If not do:
mysqld stop
touch /tmp/mysql.sock

// With old brew recipes
safe_mysqld restart
// With new brew recipes
mysqld_safe restart
**Note: If mysql does not start properly after that last line:
You may need to install the tables manually using /usr/local/bin/mysql_install_db, then restart mysql

출처 :http://www.panayiotisgeorgiou.net/error-2002-hy000-cant-connect-to-local-mysql-server-through-socket-tmpmysql-sock-2/



관련 글들
http://zetawiki.com/wiki/ERROR_2002_(HY000):_Can't_connect_to_local_MySQL_server_through_socket_'/var/lib/mysql/mysql.sock'

http://won03348556.dothome.co.kr/wordpress/?p=133


http://dryad.kr/bbs/board.php?bo_table=rboard01&wr_id=294
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock


댓글 없음: