SUITECRM v 8.2.4 where I can change db name?

I installed SUITECRM 8.2.4 but I have problems with character encoding, probably I used the wrong one for the db.

So I created a new one db on mysql using the right one encoding character, I am ready to export and import all data from the first one db to the newest one but …

where I can change the db name ? where is the config file ?

Thanks in advance, Vincenzo

There are two places to look for db config. Please change the db name in both these places

  1. public/legacy/config.php search for db_ in this file
  2. .env.local there will be a string with db credentials in it including database name

a third place:

  1. public/legacy/config_override.php (if it exists)