PDA

View Full Version : Having Trouble w/ Displaying MySQL Records Using PHP tutorial



neiro
October 2nd, 2004, 03:55 AM
Getting this message at the top of the page.

Warning: mysql_connect() [function.mysql-connect (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

Digitalosophy
October 2nd, 2004, 03:57 AM
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 ;)

neiro
October 2nd, 2004, 04:05 AM
how do I add a username to the database. I installed wamp on my box and am trying to run in locally

CyanBlue
October 2nd, 2004, 09:00 AM
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

When I start phpMyAdmin, I am prompted for a username and password. What should I enter? (http://<b><font%20color=/)
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...