Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot connect to database


FMW

Recommended Posts

Posted

I get this message with initial startup after putting in the user name, password and database name for mysql.  Are there some troubleshooting steps?  Thanks for any help.

Posted

You manually created the database, naming it, and created a user (ID and password) with appropriate privileges? Check with your host that you have the correct DB location (it may be a named server, IP address, "localhost", or "127.0.0.1"). Check with your host that you have the correct format for the DB name and user ID (often, on shared servers, your user account is prefixed to the name and ID). Both "configure.php" files need to have the same DB access information.

Posted

Thanks.  It is my web server.  Localhost is correct.  Permissions are not an issue because I use the DB server for other databases.  Tell me more about "both" configure.php files.  How do I edit the second one?

Posted

Well, you have includes/configure.php and you have admin/includes/configure.php. They are very similar but not the same (don't overwrite one with the other!). Both have the same database access section (DB name, location/address, ID, password) which has to have the same information in both.

Posted

Thanks, if I can get past step one I'll check to see if the two files agree.

Archived

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

×
×
  • Create New...