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
 [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

Add a Patch

Pull Requests

Add a Pull Request

History

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

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC