# Problem connecting to mysql database thru PHP

**URL:** https://forum.kirupa.com/t/problem-connecting-to-mysql-database-thru-php/45103
**Category:** programming
**Created:** [March 11, 2004, 2:25am UTC](https://forum.kirupa.com/t/problem-connecting-to-mysql-database-thru-php/45103 "2004-03-11T02:25:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![incarnate](https://avatars.discourse-cdn.com/v4/letter/i/96bed5/32.png) [@incarnate](https://forum.kirupa.com/u/incarnate)
#### Post date: [March 11, 2004, 2:25am UTC](https://forum.kirupa.com/t/problem-connecting-to-mysql-database-thru-php/45103/1 "2004-03-11T02:25:30Z")

</div>

Hey.

I’m a newbie, so thanks for reading. 🙂

My problem is this: I’m testing a php form that you guys have as a tutorial on your website. MySQL/Apache/PHP are all installed and work fine. However, in the **mysql\_connect()** parameters, what do I put? The error I get (which can only be viewed in the source) says, **“error querying database”**.

For viewing purposes, here’s the tutorial I spoke about: [here](http://www.kirupa.com/web/sqlrecords_php.htm)

**NOTE:**

- I am NOT using WAMP. Just Dreamweaver.
- My MYSQL is located in **C:\mysql\bin**.
- My **localhost** directory is located in **C:\base** (just a directory I assigned).
