Your mysql server is either not running, or is not creating the sock file at the location "/var/lib/mysql/mysql.sock" that calendar.php expects.
What do you get when you do this? linux$ ls -la /var/lib/mysql/mysql.sock look in the my.cnf file to find where the MySQL sock is written to, and modify your PHP application to use that sock file. You can also dig through your MySQL error logs to make sure MySQL is not having any problems creating the sock file nor performing a normal startup. -RG piyush joshi wrote: > Dear all, > Right Now I am having different kind of problem in mysql > server . mysqld service automatically goes off . when we open a website and > enter something to search from mysql database it gives the following error - > > > *Warning: Can't connect to local MySQL server through socket > '/var/lib/mysql/mysql.sock' (2) in /home/httpd/html/php/mdp/calendar.php on > line 97* > > *Warning: MySQL Connection Failed: Can't connect to local MySQL server > through socket '/var/lib/mysql/mysql.sock' (2) in > /home/httpd/html/php/mdp/calendar.php** on line 97* > *Db Error* > > Kindly tell me where is the problem ..i will be grateful to you ..Thanks in > advance .. > > > > -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]