Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unable to connect to database server


zizwce

Recommended Posts

Posted

Hi

 

I still new in this and need help about my installation. I got Unable to connect to database server! after i install it. Below is the configure.php

 

 

This is first file includes/configure.php

 


<?php

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)


// add your database and website details to the variables below

define('DB_SERVER_USERNAME', 'ebook');
// your username that you use to log into your web server
define('DB_SERVER_PASSWORD', 'noname');
// your password that you use to log into your web server
define('DB_DATABASE', 'ebookstore');
// your database
define('DIR_FS_CATALOG', '/home/public_html/yesdailymoney/'); //absolute path

define('HTTP_SERVER', 'http://www.yesdailymoney.com');
define('HTTP_COOKIE_DOMAIN', '.yesdailymoney.com');
// do not include the www

define('DB_SERVER', 'localhost');


 

 

This is 2 file admin/includes/configure.php

 


<?php
/*

*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)


// add your database and website details to the variables below

define('DB_SERVER_USERNAME', 'ebook');
// your username that you use to log into your web hosting server
define('DB_SERVER_PASSWORD', 'noname');
// your password that you use to log into your web hosting server
define('DB_DATABASE', 'ebookstore');
// replace CHANGEME with your "database_name"
define('DIR_FS_ADMIN', '/home/ipw.funnypic/public_html/yesdailymoney/admin/'); // your username that you use to log into your web hosting server
define('DIR_FS_CATALOG', '/home/ipw.funnypic/public_html/yesdailymoney/'); // your username that you use to log into your web hosting server
define('DIR_FS_DOCUMENT_ROOT', '/home/ipw.funnypic/public_html/yesdailymoney/'); // your username that you use to log into your web hosting server
define('SITE', 'www.yesdailymoney.com'); //Make sure you have the correct absolute path
define('WWW', 'http://www.yesdailymoney.com');
define('HTTP_SERVER', 'http://www.yesdailymoney.com');
define('HTTP_CATALOG_SERVER', 'http://www.yesdailymoney.com');


 

Help me how to slove the problem

 

thanks

Posted

define('DB_SERVER_USERNAME', 'ebook');

 

should be

 

define('DB_SERVER_USERNAME', 'localhost');

or

define('DB_SERVER_USERNAME', '127.0.0.1');

or on specific ip address

define('DB_SERVER_USERNAME', '192.168.0.777');

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Posted
define('DB_SERVER_USERNAME', 'ebook');

 

should be

 

define('DB_SERVER_USERNAME', 'localhost');

or

define('DB_SERVER_USERNAME', '127.0.0.1');

or on specific ip address

define('DB_SERVER_USERNAME', '192.168.0.777');

 

i tried but still not working

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...