$mosConfig_absolute_path = '/your_path/goes_here/no_slash_at_the_end'; // absolute path to joomla
$mosConfig_cachepath = '/your_path/goes_here/no_slash_at_the_end/cache'; // absolute path to joomla + cache
$mosConfig_host = 'localhost'; // database host usually localhost
$mosConfig_user = 'user_db'; // database username to connect
$mosConfig_password = 'db_pass'; // database password to connect
$mosConfig_db = 'db_name'; // database name
$mosConfig_dbprefix = 'jos_'; // database prefix - default jos_
I've made myself a script and would like to share with the community.
Attached with this post is a small script to show your absolute path and small utility to test connect to your database.
Simply download the file and upload it to your Joomla's folder and rename it to testj.php, then call it with URL like !http://yourdomain.com/testj.php
Fill in the fields to test to connect to db.
Note: Once you're done with this tool, it's advised to delete it or save it locally as a handy tool.
On the other hand if you have access to phpmyadmin, you can see some of the values already (see picture)