Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error: Unable to connect to database server after installation


ClearKbdBuf

Recommended Posts

Hello, all!

 

Please help me with my issue.

 

I'am trying to install oscommerce to my server, during installing everything is ok: tables appear in dedicated database, no errors. But when I type in my browser URL of my store (http://localhost), I get the installation page. Besides when I'am trying to get an administrating page, the next error is appearing: "Unable to connect to database server" with no comments.

 

What can I do to fix it? Thank you!

 

P.S. Please excuse me for my bad english :)

Link to comment
Share on other sites

Hello, all!

 

Please help me with my issue.

 

I'am trying to install oscommerce to my server, during installing everything is ok: tables appear in dedicated database, no errors. But when I type in my browser URL of my store (http://localhost), I get the installation page. Besides when I'am trying to get an administrating page, the next error is appearing: "Unable to connect to database server" with no comments.

 

What can I do to fix it? Thank you!

 

P.S. Please excuse me for my bad english :)

Did you remove the install folder after finishing installation? If you did, check your configure files for any mistakes. They are located at: catalog/includes/configure.php and catalog/admin/includes/configure.php

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Link to comment
Share on other sites

Did you remove the install folder after finishing installation? If you did, check your configure files for any mistakes. They are located at: catalog/includes/configure.php and catalog/admin/includes/configure.php

 

There is content of the file: catalog/admin/includes/configure.php

 

<?php

define('HTTP_SERVER', 'http://localhost');

define('HTTP_CATALOG_SERVER', 'http://localhost');

define('HTTPS_CATALOG_SERVER', 'http://localhost');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', 'F:/WeB/accounts/tupper/WWW/');

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', 'F:/WeB/accounts/tupper/WWW/admin/');

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', 'F:/WeB/accounts/tupper/WWW/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

define('DB_SERVER', '');

define('DB_SERVER_USERNAME', '');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', '');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

And there is content of catalog/includes/configure.php:

 

<?php

define('HTTP_SERVER', 'http://localhost');

define('HTTPS_SERVER', 'http://localhost');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'localhost');

define('HTTPS_COOKIE_DOMAIN', 'localhost');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', 'F:/WeB/accounts/tupper/WWW/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', '');

define('DB_SERVER_USERNAME', '');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', '');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

I think. mistakes are here in both files:

 

define('DB_SERVER', '');

define('DB_SERVER_USERNAME', '');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', '');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

 

It is empty values of fields "DB_SERVER", "DB_SERVER_USERNAME", "DB_SERVER_PASSWORD", "DB_DATABASE".

 

When I'll fill it, what I'll must do to aply these settings?

Link to comment
Share on other sites

  • 2 weeks later...

Archived

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

×
×
  • Create New...