How to find database information and absolute path

Moderator: mcsmom

Post Reply
will_khu
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Sep 10, 2007 4:49 am
Location: CA - US
Contact:

How to find database information and absolute path

Post by will_khu » Fri Dec 28, 2007 7:37 am

The most important part of NEW or TRANSFER of Joomla is lines below in configuration.php

$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)
Attachments
testj.txt
(2.19 KiB) Downloaded 13 times
phpadmininfo.jpg
USB2Store.com » USB2Store - Nice Amazon Store - sell all USB stuff
BayAreaPCHelper.com » Need Help? PC & Joomla

Post Reply