Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help in connecting to database


adam007

Recommended Posts

Posted

HELP!

 

I am a newbie to oscommerce and ive been trying to install and configure it for hours with no hope :(

 

I have followed the install file step-by-step.

 

I create the 'catalog' database and imported the sample data

 

When i tried to view the default.php page, i got an error saying

"Unable to connect to database server!"

 

 

I then edited the catalog/includes/application_top.php like this:

 

define('DB_SERVER', 'mysql');

define('DB_SERVER_USERNAME', 'mysername');

define('DB_SERVER_PASSWORD', 'mypassword');

define('DB_DATABASE', 'catalog');

define('USE_PCONNECT',3306);

 

When i try to load the Default.php page, it takes a while to load and then i get a plain white screen!!! :evil:

 

PLEASE HELP!

Posted

I tried to view the default.php in the admin section and it came up correctly (without modifying any of the files)

 

The problem is everytime i try to ad a product or click on any link or menu, it takes me to http://exchange/.......

and then gives a 'page cannot be displated' error.

 

What do i do now???

 

Please help

Archived

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

×
×
  • Create New...