Problem with localhost in help plss

Discussion in 'MySQL' started by weblazer, Jun 24, 2007.

  1. #1
    i have my arcade script but i can open it in my localhost everytime in type http://localhost/arcade/index.php it display this error
    Warning: Access denied for user 'root'@'localhost' (using password: NO) in c:\apache\htdocs\arcade1\config.php on line 16

    Warning: MySQL Connection Failed: Access denied for user 'root'@'localhost' (using password: NO) in c:\apache\htdocs\arcade1\config.php on line 16

    what is this error all about? help me plsss, thanks in advance
     
    weblazer, Jun 24, 2007 IP
  2. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #2
    You need to set the username/password to access the MySQL database
     
    frankcow, Jun 24, 2007 IP
  3. weblazer

    weblazer Well-Known Member

    Messages:
    1,174
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    158
    #3
    im just new in this but how can i change my username and password? is it in the code? what particular code do i have to change it?
     
    weblazer, Jun 24, 2007 IP
  4. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #4
    look for a config.php and you'll see the lines in there to enter the username/pass
     
    frankcow, Jun 24, 2007 IP
  5. Gnet

    Gnet Peon

    Messages:
    5,340
    Likes Received:
    529
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well if you have cpanel then you will have to make it first then add it to the database and then use it in any script
     
    Gnet, Jun 24, 2007 IP