Here we go............ There are two things that could go wrong here:
1. You don't have permissions to access the directory /var/lib/mysql/whatever.sock because mysql is the owner of the folder
or
2. /path/whatever.sock doesn't exist.
You can try this though [Linux specific, but what other operating systems are there?]
Go to /etc/my.cnf and change/add the lines:
[mysqld]
datadir=/var/lib/mysql
socket=/tmp/mysql.sock
[client]
socket=/tmp/mysql.sock
This way the client and server use the same socket and it's in a public
directory. This solves my MySql problems 98% of the time.
Jakub TCP
Linux localhost.localdomain 2.6.9-11.ELsmp
Sumber : http://forums.mysql.com/read.php?11,27769,59865
Minggu, 28 September 2014
Home »
» ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Related Posts:
Dasar-Dasar Inkscape Inkscape adalah aplikasi pengolah gambar vector yang bersifat open source. Lalu apa itu gambar vector? Gambar vector adalah gambar yang dibuat atau … Read More
Internet Internet (kependekan dari interconnection-networking) adalah seluruh jaringan komputer yang saling terhubung menggunakan standar&… Read More
Setting SMS Gateway1. Pengertian SMS Gateway adalah suatu platform yang menyediakan mekanisme untuk EUA menghantar dan menerima SMS dari peralatan mobil… Read More
Transmission Control Protocol / Internet Protocol TCP/IP (singkatan dari Transmission Control Protocol/Internet Protocol) jika diterjemahkan adalah Protokol Kendali Transmisi/Proto… Read More
Cara Install Nautilus Linux Mint 17 Mate A. Nautilus Digunakan untuk membuka tampilan GUI secara langsung. B. Instalasi 1. Pertama kita buka terminal termin… Read More
0 komentar:
Posting Komentar