Some time Developers need to work related to database, such as backups, database edits, etc. But they don’t know what is MySQL database file and database access details, they usually give just FTP or hosting control panel access.

How to  find the database access details?

Go to ‘/app/etc/’ directory and open the file ‘local.xml’.

Here you can see all the data u need:
see hostusernamepassword and the dbname nodes in the xml structure.