Location of database on LInux server

I’d like to setup a dev/test environment on a local server to enable us to do some UAT of recent changes and also write custom print formats.

Where are the database files stored on the server by default if you do the “Easy Setup” of bench: GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps

And is it as easy as renaming the “old” database directory and copying in the current production one to refresh the environment?

Thanks
Liam.

Don’t copy database files to create test environment.

Rather, take a backup and restore it in your test environment.

See Database backup-restore - #3 by omkar_ghatpande

-Anand.