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: https://github.com/frappe/bench

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 https://discuss.frappe.io/t/database-backup-restore/925/3

-Anand.