Database password problem

Permalink 2 users found helpful
Had a little problem at my main site and I had to change passwords on the SQL databases. Now my C5 subdomains can't access their databases. How can I update the changed password in the site when I can't get to the admin section?

theehman
 
LucasAnderson replied on at Permalink Best Answer Reply
LucasAnderson
That would be in your config/site.php file. Update that using FTP. You'll find this:

define('DB_PASSWORD', '<your old password>');
nteaviation replied on at Permalink Reply
nteaviation
Lucas beat me by one minute... Great minds think alike, just at different speeds... LOL
calicomoose replied on at Permalink Reply
calicomoose
Thank you! This thread still helped me two years later!
nteaviation replied on at Permalink Reply
nteaviation
You could edit the /config/site.php and change the line below to reflect your new password
define('DB_PASSWORD', 'newpassword');
theehman replied on at Permalink Reply
theehman
Thanks to both of you. I was able to bring one site back so far. I'll get the rest today as well.
davidpratthk replied on at Permalink Reply
Had the same problem. used this and solved the problem. very simple, thanks