# Having Trouble w/ Displaying MySQL Records Using PHP tutorial

**URL:** <https://forum.kirupa.com/t/having-trouble-w-displaying-mysql-records-using-php-tutorial/66077>\
**Category:** programming\
**Created:** [October 2, 2004, 6:55am UTC](https://forum.kirupa.com/t/having-trouble-w-displaying-mysql-records-using-php-tutorial/66077 "2004-10-02T06:55:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![neiro](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@neiro](https://forum.kirupa.com/u/neiro)\
**Post date:** [October 2, 2004, 6:55am UTC](https://forum.kirupa.com/t/having-trouble-w-displaying-mysql-records-using-php-tutorial/66077/1 "2004-10-02T06:55:23Z")

</div>

Getting this message at the top of the page.

**Warning** : mysql\_connect() [[[color=#800080]function.mysql-connect[/color]](http://localhost/practice/function.mysql-connect)]: Access denied for user: ‘e\_novative@localhost’ (Using password: YES) in **c:\wamp\www\practice\mysql.php** on line **43**  
Error connecting to database  
Dont know why, I did the tutorial all the way through it is not working. Can anyone help. I am a newbie to php and want to learn its capabilities.

thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 2, 2004, 6:57am UTC](https://forum.kirupa.com/t/having-trouble-w-displaying-mysql-records-using-php-tutorial/66077/2 "2004-10-02T06:57:10Z")

</div>

Your not connecting to the database.

1. Database name may be wrong
2. Username and/or password is wrong.

Make sure you add the user to the database 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 2, 2004, 7:05am UTC](https://forum.kirupa.com/t/having-trouble-w-displaying-mysql-records-using-php-tutorial/66077/3 "2004-10-02T07:05:58Z")

</div>

how do I add a username to the database. I installed wamp on my box and am trying to run in locally

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 2, 2004, 12:00pm UTC](https://forum.kirupa.com/t/having-trouble-w-displaying-mysql-records-using-php-tutorial/66077/4 "2004-10-02T12:00:36Z")

</div>

I have not tried WAMP, but the WAMP site says it has the default value…

> [http://www.e-novative.de/en/support/faq/wamp.php](http://www.e-novative.de/en/support/faq/wamp.php)

**[color=#000099]When I start phpMyAdmin, I am prompted for a username and password. What should I enter?[/color]**  
Enter a valid database username and password. On installation, WAMP has created a user e\_novative with password e\_novative for you.  
Maybe you should try that combo first…
