Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Nov 2011
    Posts
    33
    Plugin Contributions
    0

    Default Error establishing a database connection

    https://fundametals.net/
    Zen v1.5.2-BETA

    Out of the blue my website says "Error establishing a database connection". I made no changes.
    I can still log into Zen Cart Admin.

    Any ideas?

    mahlerosa

  2. #2
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: Error establishing a database connection

    I will bet money that your host updated PHP version breaking your site.

    I should probably say it before the regulars come in and cut and paste the "your site is ancient, you should upgrade" - Zen Cart v1.5.2 is compatible with PHP 5.3.7 through PHP 5.6 (or PHP 5.2.14+ with weakened security).
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,155
    Plugin Contributions
    11

    Default Re: Error establishing a database connection

    Actually, I would qualify 1.5.2 BETA as pre-ancient.

  4. #4
    Join Date
    Nov 2011
    Posts
    33
    Plugin Contributions
    0

    Default Re: Error establishing a database connection

    From Hostmonster. What does this even mean?
    "On checking the website https://www.fundametals.net/, I found that it was showing database error and I found that the database of the website deleted."

  5. #5
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: Error establishing a database connection

    well, that doesn't make any sense, if you can still get into the admin.
    Compare the includes/configure.php and the YOUR_ADMIN/includes/configure.php for the database connection settings.
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  6. #6
    Join Date
    Nov 2011
    Posts
    33
    Plugin Contributions
    0

    Default Re: Error establishing a database connection

    Can you tell me where to look for these? Pretend I am 5 years old.

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,704
    Plugin Contributions
    123

    Default Re: Error establishing a database connection

    These two files are under the root level of your cart installation.

    https://docs.zen-cart.com/user/miscellaneous/configure/
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  8. #8
    Join Date
    Nov 2011
    Posts
    33
    Plugin Contributions
    0

    Default Re: Error establishing a database connection

    I'm sorry but that does not help me. Am I supposed to find these files under my Cpanel File Manager?

  9. #9
    Join Date
    Nov 2011
    Posts
    33
    Plugin Contributions
    0

    Default Re: Error establishing a database connection

    Further from Hostmonster:
    Further on checking the wp-config.php of the Website I found that the website have database entry as thj_as_dk_db, Here is the codes which are present in the wp-config.php:
    <?php
    // ** MySQL settings ** //
    define('DB_NAME', 'thj_as_dk_db'); // The name of the database
    define('DB_USER', 'thj_as_dk'); // Your MySQL username
    define('DB_PASSWORD', 'gitte02'); // ...and password
    define('DB_HOST', 'mysql2.unoeuro.com'); // 99% chance you won't need to change this value
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', '');

    Further I was unable to find the website database thj_as_dk_db in the all three backup, It looks like the website have remote database, It is advised to contact the developer, Please note: We are server admin support team and as we are not trained as website developers our ability to troubleshoot customized files is rather limited. Any troubleshooting will have to be done by a developer as we cannot take liability for the functionality of your scripts.

  10. #10
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,155
    Plugin Contributions
    11

    Default Re: Error establishing a database connection

    Quote Originally Posted by mahlerosa View Post
    Further from Hostmonster:
    Further on checking the wp-config.php of the Website I found that ....
    That is not the name of a configure file for Zen Cart.

    includes/configure.php

    YOUR_ADMIN/includes/configure.php

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. error establishing a database connection
    By Spinners Derek in forum General Questions
    Replies: 7
    Last Post: 11 Aug 2015, 09:21 PM
  2. Replies: 0
    Last Post: 11 Dec 2013, 08:05 AM
  3. Error establishing a database connection
    By Fireflyz in forum General Questions
    Replies: 2
    Last Post: 22 Oct 2009, 12:19 PM
  4. Database Connection Error
    By ambprice in forum Installing on a Windows Server
    Replies: 5
    Last Post: 2 Nov 2007, 08:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR