MySQL Forums
Forum List  »  PHP

where is my problem
Posted by: Dimitar Valkov
Date: December 30, 2005 05:22AM

I have installed mysql 4.11 just like the Intall-Binary sais but when I am testing the installation with this code [php]<?php
$link=mysql_connect("", "root", ".") or DIE ("Cannot connect");
echo ("Connected successfully");
?>
[/php]
I have got this error:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2) in /home/www/dbtest.php on line 2
Cannot connect
The only difference with the installation on the Install-binary file is that I am unpacking the mysql distribution in the /usr/web/mysql directory.All the other things are the same.If anybody can help me I appreciate that.

Options: ReplyQuote


Subject
Written By
Posted
where is my problem
December 30, 2005 05:22AM
December 30, 2005 07:26AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.