Troubles viewing my site

Avatar
  • Answered
Hi there! Probably very common problem and I'm pretty sure the solution is pretty simple but I stuck with it. Anyway, after I've uploaded my database and http files to the server, I have a trouble viewing my site in browser. This is the message it gives me:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'dmsfldbu'@'localhost' (using password: YES) in /home/shomef5/public_html/inc/dbconnect.php on line 3
I cannot connect to the database because: Access denied for user 'dmsfldbu'@'localhost' (using password: YES)

Could you please point me where the problem could be and how to fix it.
Thanks in advance!
Dmitry.
Avatar
Arn
Hello Dmitry, Sorry to hear that you're having problems with properly seeing your website due to the database connection. I investigated your site, and the main problem was the name of the database and user in the dbconnect.php file in your inc folder. I changed it to the appropriate settings so that your website can now connect to the database. The database name AND user all have a prefix that is placed in front of the name you designate. This is necessary in order to specifically distinguish the database on the server. The prefix is required and is part of all database user and database names. In any case, I was able to see your website after those changes. You can always change the username or password used to connect to the database going into your cPanel and using the MySQL manager there. Of course, you would also have to change the corresponding values in the dbconnect.php file for your website. I hope this helps get you going! Please let us know if you require any further assistance. Regards, Arnel C.