6
Mainfile.php is in the root website directory where you installed Xoops. The file will give you details about your database server.
It has the database name, the username to connect to the database, the user password to connect to the database, and the prefix for the XOOPS tables within the database.
If you download the file and open a text editor, you will be able to read the information.
HTH.