Error message?

Discussion in 'PHP' started by le007, Apr 4, 2009.

  1. #1
    Can anyone tell me what this means please?

    Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Documents and Settings\All Users\Desktop\wamp\www\page\addemail2.php on line 13
    
    Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\Documents and Settings\All Users\Desktop\wamp\www\page\addemail2.php on line 13
    Access denied for user 'ODBC'@'localhost' (using password: NO)
    Code (markup):

     
    le007, Apr 4, 2009 IP
  2. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It means that you tried to connect to MySQL without providing any password. The username it used ("ODBC") does not have rights to access your MySQL server without a password.
     
    SmallPotatoes, Apr 4, 2009 IP
  3. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #3
    You are not able to connect to your MySQL server using "ODBC" user. If you have not reset the password for MySQL root user then the default credential for wamp server is:

    Username: root

    Password is blank (no characters).

    Kailash
     
    kailash, Apr 4, 2009 IP
  4. le007

    le007 Well-Known Member

    Messages:
    481
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #4
    Thanks for the replies - changed the password and its working. Thanks again
     
    le007, Apr 4, 2009 IP