Configuring SQL with localhost?

Hi Guys,

I have a 64 bit machine , i am facing some difficulity configuring mysql to apache.
I already have apache and php working together fine for quite some time. I can access the root page on:

Today i installed MySQL Server 5.1, and from the command prompt i created a database and a table inside it. But i’m unable to access it from PHP. I can say it doesn’t recognize it because this command isn’t producing anything:

mysql_connect (“localhost”, “root”, “pass”) or die('Cannot connect to the database because: ’ . mysql_error());

It should have shown be an error if it couldn’t connect. no?

So do you have any suggestions on how do i configure it then please post.

Thanks a lot in advance!

PS- Also MYSQL Server5.1 doesn’t have a UI for creating databases etc stuff. Do you know of any link which provides me that (on 64 bit machine)?