Could not connect to DB

hello,
i have installed and running fine Suite CRM but i changed the root password for mysql database and now suiteCRM is not working anymore because cant connect to database.
error message: Thu Jan 14 11:25:16 2016 [27860][-none-][FATAL] Could not connect to DB server localhost as root. port : Access denied for user ‘root’@‘localhost’ (using password: YES)

please can you help me how to update suiteCRM with new root password.
thanks in advice.

Hi seci,

You should be able to update the password in the CRM by opening the file called “config.php”

In this file there will be an array called dbconfig that looks like:

'dbconfig' => 
  array (
    'db_host_name' => '',
    'db_host_instance' => '',
    'db_user_name' => '',
    'db_password' => '',
    'db_name' => '',
    'db_type' => '',
    'db_port' => '',
    'db_manager' => '',

Update the details here where necessary and save the file.
Then, run a quick repair & Rebuild in the CRM. (Found in Admin > Repair)

1 Like

The password is stored in config.php. If you open that file in a text editor and search for db_password you should see the line you need to change.

thanks John!
it works

this worked!!!