# Configuring SQL with localhost?

**URL:** <https://forum.kirupa.com/t/configuring-sql-with-localhost/295130>\
**Category:** programming\
**Created:** [August 25, 2009, 6:48pm UTC](https://forum.kirupa.com/t/configuring-sql-with-localhost/295130 "2009-08-25T18:48:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![energy](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@energy](https://forum.kirupa.com/u/energy)\
**Post date:** [August 25, 2009, 6:48pm UTC](https://forum.kirupa.com/t/configuring-sql-with-localhost/295130/1 "2009-08-25T18:48:54Z")

</div>

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:  
[http://localhost:8080](http://localhost:8080)

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)?
