My site cannot be reached...admin cannot be reached.....error message 0 DB_ERROR_NOT_CONNECTED Where did my cart go? where did my admin go?

0 DB_ERROR_NOT_CONNECTED is an error message that appears if your MySQL database cannot be reached.

Zen Cart uses the security credentials in your /includes/configure.php file (or your /admin/includes/configure.php when accessing your admin section) in order to connect to your database.  If the database is not reachable using those credentials, the 0 DB_ERROR_NOT_CONNECTED message will be displayed.

Things to check or do:
1. Double-check that the information in your configure.php files is correct.
2. Check that the database specified in the configure.php files actually exists.
3. Check that the username specified in the configure.php files exists and has been granted access to the database specified in the configure.php files.
4. Run a "repair" on the database. Most hosts have a Database Repair option listed beside the database names in the webhosting control panel. Ask your host if you need help finding this.
5. Talk to your hosting company to determine whether they are doing some sort of maintenance on the database.  Tell them that your website cannot connect to your MySQL database, and ask them for some assistance in getting that working again.

These other articles may be of benefit:
Connection to database failed
Error connecting (command denied)
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can I find out what version of Zen Cart or PHP or MySQL I'm using?

To find out what version of Zen Cart or PHP or MySQL you are currently using, you can simply go...

Getting a BLANK PAGE? Here's the answer ...

If you're getting a blank page when trying to browse to a certain page on your store, or after...

What's New in the Upcoming v2.0 release?

Database Abstraction Layer and Sql CacheThe abstraction layer has been re-factored to include a...

Image Preparation - How-to

I've seen several posts where people obviously aren't quite sure about the best way to set up...

Some tips to modify stylesheet

1. Download Web Developer extension for FireFox here2. Install & restart FireFox. You should...