mysql_connect - Not connecting

Discussion in 'PHP' started by Hontoir, Feb 27, 2008.

  1. #1
    I have filled out my registration form and on submit this is produced.

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'user'@'localhost' (using password: NO) in /home/users/uks63651/html/downwoodbooks.co.uk/LIT/config.php on line 1
    Could not connect: Access denied for user 'user'@'localhost' (using password: NO)

    Anyone know what is preventing this from connecting?

    Thanks

    Mike.
     
    Hontoir, Feb 27, 2008 IP
  2. jnestor

    jnestor Peon

    Messages:
    133
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You didn't configure your MySQL username and password correctly.

    This: Access denied for user 'user'@'localhost' (using password: NO)
    means that it's trying to connect with username "user" and a blank password which is very unlikely to be correct.
     
    jnestor, Feb 27, 2008 IP
  3. proxywhereabouts

    proxywhereabouts Notable Member

    Messages:
    4,027
    Likes Received:
    110
    Best Answers:
    0
    Trophy Points:
    200
    #3
    I would suggest you to restart your mysql service.

    Contact your host and ask them to restart the sql.
     
    proxywhereabouts, Feb 27, 2008 IP
  4. Hontoir

    Hontoir Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Now working thanks
     
    Hontoir, Feb 27, 2008 IP