Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I get the message "Unable to connect to database server


niceguyoo5

Recommended Posts

Posted

I get the message "Unable to connect to database server!" when trying to access either admin or catalog. What am i doing wrong?

 

Thanks

Florin :x

Posted

Did you check the include/configure.php files for the correct settings to connect to your mysql db?

Posted

1.) do you have data base?

user name?

password?

db name?

 

2.) which version are you tring to install?

Posted

I dont have a configure.php in my icludes folder...on the application_top.php what would i have to put down under this?

 

// define our database connection

define('DB_SERVER', $HTTP_ENV_VARS['216.115.139.15']);

define('DB_SERVER_USERNAME', 'username');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'catalog');

define('USE_PCONNECT', 1);

 

what database connection are they reffering to?

Posted

first looks like you don't know if you have a data base or not.

 

contact your ISP.

 

1.) do you have mysql?

a.) if not you need another ISP with php 4* and mysql

2.) is it enabled for my account?

a.) if so you need the name of the data base

b.) a username - usually your logon name

c.) password - usually the same

 

'till you know these things you are dead in the water

Posted

Thanks i got 2.2 and mysql, it works great but i get an error when i press checkout on the catalog page. How do i set up the payment module to 2checkout.

 

Florin :cry:

Posted

Just a guess about the error

 

 

I'l bet usps is enabled...

 

If you have an account data the data up fo it.

If not..disable it.

same for fedex and ups

Archived

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

×
×
  • Create New...