Forum Moderators: open

Message Too Old, No Replies

NOOb with an error

         

Directlineholidays

3:11 pm on Aug 16, 2006 (gmt 0)

10+ Year Member



I have just purchased a site <snip> and have transfered all the files across to my server. I am now seeing the following error on the home page:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'username'@'localhost' (using password: YES) in /home/username/public_html/news.php on line 9
Access denied for user 'username'@'localhost' (using password: YES)

What does it mean in lay mans term and how can i fix it?

[edited by: volatilegx at 7:04 pm (utc) on Aug. 16, 2006]
[edit reason]
[1][edit reason] no URLs please - genericized username [/edit]
[/edit][/1]

volatilegx

7:07 pm on Aug 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It means that the files you transfered are trying to access a database. When a script tries to access a database, it has to provide the database program with a username and password.

The one encoded into the script is not correct. You can either edit the script(s) or add a new user and password to your database. You can find out the username and password being used by opening the script in a text editor. Then, hopefully, your site has a database management interface (like phpMyAdmin) where you can add a new user.

You may even have to create a new database, based upon the schema and data of the old one.