Bug #12946 Updated: Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mys
| From: | sniper@php.net | Date: | Fri, 24 Aug 2001 14:21:15 +0000 |
| Subject: | Bug #12946 Updated: Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mys | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64249@lists.php.net to get a copy of this message | ||
ID: 12946
Updated by: sniper
Reported By: gvlsivarao@archeanit.com
Old Status: Open
Status: Closed
Bug Type: MySQL related
Operating System: linux mandrake 8.0
PHP Version: 4.0.5
New Comment:
Fixed in PHP 4.0.6
Previous Comments:
------------------------------------------------------------------------
[2001-08-24 09:33:23] gvlsivarao@archeanit.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
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12946&edit=1