Nelson To wrote:
> After I installed the mysql according to the procedure of installing
> documentation, I type mysql in the directory of the mysql/bin/ and it say
> "Can't connect to local MySQL server throught socket '/tmp/mysql.sock' (2) ".
> Why is this message really mean?
Mysql uses this file for establishing connections via sockets.
If you use MIT-pthreads there will be no such file.
So you can't connect via sockets to mysql.
Just use the IP-address or the full hostname to connect.
This error can occur also, if there isn't a running mysqld daemon on the machine you use
the mysql command.
Check this with :
ps -e|grep mysqld
If there is none, then start it :)