ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (38)

[root@ibm /var/db/mysql]# uname -a
FreeBSD ibm.jc 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
[root@ibm /var/db/mysql]# mysql
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (38)
[root@ibm /var/db/mysql]# ls -al /tmp/mysql.sock
-rw-r–r–  1 root  wheel  0 Dec  4 10:15 /tmp/mysql.sock
Just delete file /tmp/mysql.sock and restart mysql-server

Tags: , , , ,

Filed under:Error

Don’t Try This At Home

top - 12:53:54 up 27 days, 15:29,  3 users,  load average: 695.28, 439.47, 201.41
Tasks: 150 total,   1 running, 146 sleeping,   0 stopped,   3 zombie
Cpu(s):  0.0%us,  0.0%sy,  0.0%ni, 98.2%id,  1.4%wa,  0.0%hi,  0.3%si,  0.0%st
Mem:   2074224k total,   158648k used,  1915576k free,     4852k buffers
Swap:  2096472k total,   206592k used,  1889880k free,    38460k cached
PID USER      PR  NI  VIRT  RES  SHR S [...]

Tags: , ,

Filed under:Error

Install Nagios Plugins and NRPE Addon

Nagios® is an Open Source host, service and network monitoring program. Where can you get it? Right here. Can you get support for it? Yes! Get more answers to some of your basic questions about Nagios here.
root@titik [~/herman]# wget http://transact.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.12.tar.gz
–10:41:05–  http://transact.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.12.tar.gz
Resolving transact.dl.sourceforge.net… 202.55.147.10
Connecting to transact.dl.sourceforge.net|202.55.147.10|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1831377 (1.7M) [application/x-gzip]
Saving [...]

Tags: , , , , ,

Filed under:How To