Thread: connecting to mySQL DB
-
22-01-2009, 06:40 #1
new member
- Join Date
- Apr 2007
- Posts
- 9
connecting to mySQL DB
HI, totally new with php and mySQL and I need advice. I have uploaded a pre-built zen website with database and all files but when I try to logon, I am told it cannot connect to the database. I know exactly where the problem lies, but I simply cannot get the it right.
The two files I need to configure correctly (but which I am having trouble with) are includes/configure.php (1) and admin/includes/configure.php (2).
includes/configure.php (1) asks
// add your database and website details to the variables below
define('DB_SERVER_USERNAME', 'CHANGE');
// your username that you use to log into your web server
define('DB_SERVER_PASSWORD', 'CHANGE');
// your password that you use to log into your web server
define('DB_DATABASE', 'CHANGE');
// replace username with your web server username
define('DIR_FS_CATALOG', '/home/CHANGE/public_html/');
define('HTTP_SERVER', 'http://www.CHANGE.co.uk');
define('HTTP_COOKIE_DOMAIN', '.CHANGE.co.uk');
// do not include the www
admin/includes/configure.php (2) asks
// add your database and website details to the variables below
define('DB_SERVER_USERNAME', 'CHANGE');
// your username that you use to log into your web server
define('DB_SERVER_PASSWORD', 'CHANGE');
// your password that you use to log into your web server
define('DB_DATABASE', 'CHANGE');
// replace username with your web server username
define('DIR_FS_ADMIN', '/home/CHANGE/public_html/admin/'); // replace username with your web server username
define('DIR_FS_CATALOG', '/home/CHANGE/public_html/');
define('DIR_FS_DOCUMENT_ROOT', '/home/CHANGE/public_html');
define('SITE', 'www.CHANGE.co.uk');
define('WWW', 'http://www.CHANGE.co.uk');
define('HTTP_SERVER', 'http://www.CHANGE.co.uk');
define('HTTP_CATALOG_SERVER', 'http://www.CHANGE.co.uk');
My problem is that no matter how many times I change the these values, something is not going correctly.
My sites is Index of /, the zen cart is stored at http://eagleanddove.com/shop and according to cpanel, my database is eagleand_ebookstore.
I need help in knowing what to put into the CHANGE option on all the configure files, as I just can not get it right. This is the first time I have tried this, so I am a beginner with Zencarts.
-
22-01-2009, 07:12 #2
Junior Member
- Join Date
- Sep 2008
- Posts
- 14
In define('DIR_FS_CATALOG', '/home/CHANGE/public_html/');
Replace '/home/CHANGE/public_html/' With '/home/cpanel_username/public_html/shop'
as zen cart in under "shop" Folder you need to add "shop" after 'public_html'
IF you still face problem then please contact us on Live chat so that we can fix this problem.
-
22-01-2009, 07:23 #3
new member
- Join Date
- Apr 2007
- Posts
- 9
-
22-01-2009, 09:05 #4
You're welcome
Rock _a.k.a._ Jack
Windows Hosting || Windows Reseller Hosting
Cloud Hosting || Powerful Dedicated Servers
Follow eUKhost on Twitter || Join eUKhost Community on Facebook
For complaints, grievances or suggestions kindly email our FeedBack Dept.
Proper action will be taken accordingly & instantaneously!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)


LinkBack URL
About LinkBacks



Reply With Quote



Hi Mark ! Apologize for the delay in reply. I have gone through the chat transcript and...
Trying to find out what happened...