im Indian a novice and in php. I installed the wamp server2 that has the apacheserver,phpmyadmin and mysql but when I try to connect mysql through PHP code a error message - "Warning : Mysql_connect()[function.mysql.connect]; Access denied for user ' '@'localhost'(using password YES) in c:\wamp\www\school\temp.php on line 10." is comming so I cnat connect mysql. can someone help me.


10 Years
Discussion Span
Last Post by stephen84s

hey even i m also new....
have u put mysql connector jar in classpath.
plz check

I think the thread starter is talking about PHP and you r confusing it with the J-Connector.

So how are you connecting to the database, can we have some code to see what you tried ?
First hit the command "telnet <IP of system MySQL DB server installed on> 3306" to see if it connects.
If so are you able to login using the given user in mysql directly via the mysql command line client or via the mysql-gui tools with the given username and password?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.