Iam running this little script to connect to the msyql server but i keep getting this error MySQL connection failed: Can't Connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /var/www/html/index1.php on line 8
Unable to connect to the server.
<html>
<head>
<title> sign up page</title>
<head>
<body>
<?php
$dbcnx = mysql_connect("localhost","root","fuzzy");
if (!$dbcnx) {
echo ( "<P>Unable to connect to the server.</P>");
exit();
}
if (! @mysql_select_db("signup[") ) {
echo( "<P>Unable to locate sign up.</P>" );
exit();
}
?>









Bookmarks