Changed DB root and user PW - Getting errors

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
oilcanharry
Forum Newbie
Posts: 5
Joined: Mon Jan 12, 2009 8:39 am

Changed DB root and user PW - Getting errors

Post by oilcanharry »

I was trying to make a backup of my database and changed the root and user passwords.

Then I went to my site via SSH and got this error...

mysqldump -u cha -p 7eS>-PYc9wDY cha_ar > cha_DBbackupfile.sql
Enter password:
mysqldump: Got error: 1045: Access denied for user 'cha'@'localhost' (using password: YES) when trying to connect


Now I get these errors when going to http://www.cha.com. What can I do? Thanks. Errors below.

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'cha_arcade'@'localhost' (using password: YES) in /home/cha/public_html/functions.php(2) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 29

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'cha_arcade'@'localhost' (using password: YES) in /home/cha/public_html/functions.php(2) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 30
Cannot select database. Please check back later.


Can anyone tell what I can do? Thanks.
oilcanharry
Forum Newbie
Posts: 5
Joined: Mon Jan 12, 2009 8:39 am

Re: Changed DB root and user PW - Getting errors

Post by oilcanharry »

Never mind. I needed to edit the config.php file and now I'm back in business.
Post Reply