Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Keep getting "Unable to connect to database server!"


sternerc

Recommended Posts

Hello all,

 

I'm stumped on this one. I get "Unable to connect to database server!" every time I try to enter the catalog. I can get to the administration page and do configurations without a hitch. The configure.php file is identical in both catalog/includes and admin/includes so I don't know what else to look for.

 

Thanks for any ideas and insight.

Chris

Link to comment
Share on other sites

When you make your changes, do they reflect inside of your database? You may need to use phpmyadmin or whatever means you have to access your database tables.

 

Try and add some bogus products and see if they show up in the tables of your database.

 

 

Kevin

"What I didn't know yesterday, I know today & will remember tomorrow"

(By Kwalker)

 

What do you see when you open up the tep_database-pr2.2-CVS.pdf file that came with your osCommerce download?

Link to comment
Share on other sites

When you make your changes, do they reflect inside of your database? You may need to use phpmyadmin or whatever means you have to access your database tables.

 

Try and add some bogus products and see if they show up in the tables of your database.

Kevin

 

 

Hi Kevin,

 

Well I added two fake items and they did save and are held in the database table products. It's like the configure.php file is wrong but I copied the one from /admin/includes so I know its identical and works on the admin side.

 

Got any other suggestions to look for?

 

Thanks again,

Chris

Link to comment
Share on other sites

Look in the includes/local/ folder and see if there is an alternative configure.php file in there. If you find one then rename it or delete it.

 

Be aware that the two configure.php files are different, so if you did 'copy' the admin/includes/configure.php file to the includes/ folder then that'll be the cause of your problem.

 

Vger

Link to comment
Share on other sites

Look in the includes/local/ folder and see if there is an alternative configure.php file in there. If you find one then rename it or delete it.

 

Be aware that the two configure.php files are different, so if you did 'copy' the admin/includes/configure.php file to the includes/ folder then that'll be the cause of your problem.

 

Vger

 

Thanks a million Vger!!! I renamed the configure.php in the local folder and it came right up.

 

I've been killing myself with this issue.

 

Thanks again,

Chris

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...