Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Install claims to work, but then is "Unable to connect to database server!"


bluesalt

Recommended Posts

I've followed the instructions in various walkthroughs, and everything seems to be working fine until I get to the page with the options "Catalog" and "Administration Tool" If I click on catalog, I get a blank page. If I click on Administration Tool, I get a a page that says "Unable to connect to database server!"

 

When putting in the database info for setup, I have been using the server IP, since localhost did not work. I am using the crappy free hosting provided by godaddy.com when I registered the domain name. The database administration tool is a version of PHPmyadmin built into their site.

Link to comment
Share on other sites

I've followed the instructions in various walkthroughs, and everything seems to be working fine until I get to the page with the options "Catalog" and "Administration Tool" If I click on catalog, I get a blank page. If I click on Administration Tool, I get a a page that says "Unable to connect to database server!"

 

When putting in the database info for setup, I have been using the server IP, since localhost did not work. I am using the crappy free hosting provided by godaddy.com when I registered the domain name. The database administration tool is a version of PHPmyadmin built into their site.

Log in to your phpmyadmin. Inside you will see an IP address, for example 10.11.12.13.

That is your database server information/ip (DB_SERVER).

The username you typed in phpmyadmin login is your DB_SERVER_USERNAME.

The password you type in phpmyadmin login is your DB_SERVER_PASSWORD.

The name of the database you created prior to installing oscommerce is your DB_DATABASE. You should see it in the dropdown.

 

Your server IP and database server IP are different.

Link to comment
Share on other sites

Apologies, I meant to say that I had entered the database server IP. Oscommerce claims to have imported the database during the install procedure. I believe the information you listed is the information I entered in the web install process. Am I right in thinking that to check the variables I will need to get a PHP compiler and look at some file on the site?

 

Assuming that all the information I've inputted is correct (I've done the procedure several times), is there anything else that could be causing this problem?

Link to comment
Share on other sites

... Am I right in thinking that to check the variables I will need to get a PHP compiler and look at some file on the site?
No. osCommerce has 2 configure.php files, one in /includes folder and the other in /admin/includes folder.

Open them in Notepad or any good text editor and verify that the database information are correct.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...