Change database user and password

Silverstripe Version:
I need to change my dbase user and password. where is the file?
Details of your query go here

// Include any relevant code. If you have a lot of code, link to a gist instead.

In the current versions (ie. 4.x) the credentials are either in a file called .env which can be found in the web root, or they may be set through environment variables on the server.