php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12946 Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mys
Submitted: 2001-08-24 09:33 UTC Modified: 2001-08-24 10:21 UTC
From: gvlsivarao at archeanit dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.5 OS: linux mandrake 8.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gvlsivarao at archeanit dot com
New email:
PHP Version: OS:

 

 [2001-08-24 09:33 UTC] gvlsivarao at archeanit dot com
Hi,
I am getting the following  when i try to open my crm application 

versions are ...
apache-1.13.20
php-4.0.5
mysql-3.23.36

Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in
/var/www/html/relata/wwwroot/lib/phplib/db_mysql.inc.php on line 76
Database error: connect(localhost, root, $Password) failed.
MySQL Error: ()
Session halted.

even i tried with simple code ...

<?php
        $link = mysql_connect ("localhost", "root", "") or die ("Could not connect");
        print ("Connected successfully");
        mysql_close ($link);
?>

i used open my mysql using following command  and it will open for me to update also.

>mysql -u root                     ------------i don't  have password 

mysql>

If anyone had solution please...
thanQ

with best regards
gvlsivarao
 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-24 10:21 UTC] sniper@php.net
Fixed in PHP 4.0.6

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 03:01:33 2025 UTC