The control panel password is the account password, which is also the database password. So if you change the control panel password, you’ll need to update your database credentials as well.
Also, only change your password through the client area. Do not use the password reset functionality of the control panel. If you do, the password of your account is changed but this is not reflected in the client area. Many client area features will break because of it and the password from the client area will be pushed to your hosting account without warning at some point, breaking your database connection without warning.
So please reset the account password through the client area and use that for your database configuration.