hello,
i just installed mysql 4.0.13 on RH 8 box with php 4.2.0. in sql created a db and granted ALL to "someuser" identified by "somepw". if i use th command line i can get to the mysql client and create tables, drop them etc...
can't connect with php...
with:
<?
$link = mysql_connect("localhost", "someuser", "somepw")
or die("Could not connect: " . mysql_error());
print ("Connected successfully");
mysql_close($link);
?>
get this:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /web/bangonacan.org/web/htdocs/efestival/mb/v.php on line 3
Could not connect: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
so i'm trying to figure out what's worng...
i need it badly....
thanks...