Results 1 to 10 of 10
  1. #1
    Join Date
    Nov 2007
    Posts
    5
    Plugin Contributions
    0

    Default Lost database connection

    Really annoying problem and ive come to the end of my whitts with it

    I installed ZEN for a customer of mine ages ago, and his host has insisted he change his SQL database password as they were hacked recently

    Should have been simple enough, passwords changed, i can log into the database using MYSQL with no problem, and an old install of OSCOMMERCE works fine. For some reason the ZEN cart simply will not connect to the database! Even installed a new instance of zen and that will work!!! but not the old one.

    Ive updated the info in the

    includes/config.php &
    admin/includes/configer.php

    Both are correct, and the only thing thats changed is the password, but no joy.

    Is there something else odd about Zen that i have missed?

    Any help greatly appreciated at this point!

    Just incase ive missed something:

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'zen_');
    define('DB_SERVER', '************);
    define('DB_SERVER_USERNAME', '**********');
    define('DB_SERVER_PASSWORD', '*************);
    define('DB_DATABASE', '**************');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

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

    Default Re: Lost database connection

    Does the database actually have a prefix of zen_?
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Nov 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Lost database connection

    Quote Originally Posted by dbltoe View Post
    Does the database actually have a prefix of zen_?
    It does indeed... Its always been that, the only thing thats changed is the password for the database.

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

    Default Re: Lost database connection

    assuming that you meant includes/configure.php and admin/includes/configure.php there is little else that is common to both the admin and catalog as far as database is the password, username, database prefix, and database name. Other than that, I can't think of anything that would make both the cart and the admin inaccessible. They are both not working, correct?
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  5. #5
    Join Date
    Nov 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Lost database connection

    Quote Originally Posted by dbltoe View Post
    assuming that you meant includes/configure.php and admin/includes/configure.php there is little else that is common to both the admin and catalog as far as database is the password, username, database prefix, and database name. Other than that, I can't think of anything that would make both the cart and the admin inaccessible. They are both not working, correct?
    Interesting question.... the admin side IS working....

    Least thats a start some more investigation required.....

  6. #6
    Join Date
    Nov 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Lost database connection

    I just cannot see any reason for it not working....

    Admin sections working and picking up data,

    Ive installed another zen cart - that picks up its tables (how ever it wont read the original zen data)

    Ive Restored a recent backup of the sql database, just incase it had corrupted, still nothing.

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

    Default Re: Lost database connection

    different versions of mySql have different internal coding. Might want to google or search here for either Merlinpa or DrByte talking about compatibility. Could be that something in the database is locking up the cart and not the admin.

    Still, it's a stab in the dark.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  8. #8
    Join Date
    Nov 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Lost database connection

    Quote Originally Posted by dbltoe View Post
    different versions of mySql have different internal coding. Might want to google or search here for either Merlinpa or DrByte talking about compatibility. Could be that something in the database is locking up the cart and not the admin.

    Still, it's a stab in the dark.
    Thanks for your help and suggestions dbltoe, its much appreciated

    It seems to defy logic! Im going to blame the hosting company!

    Ive come to a head with it now... it wants to die so ill let it! Good oppertunity to ditch the current host and start completly a-fresh! Just have to see what i can salvage from the sql backups i have

  9. #9
    Join Date
    Aug 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Lost database connection

    Had the same problem. I could log into admin but not my site. Once i changed my phpMYadmin passwords in the 'config.inc.php' file and logged on it worked. It may work for you.

  10. #10
    Join Date
    Nov 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Lost database connection

    Could be that the new PW is hashed under the new hashing algorithm used by the latest versions of MySQL, but that the webserver has an older version of MySQL Client API that can't handle the new hashing algorithm. I'm fighting with my employer's webhost over the same issue right now. The solution is to reset the DB PW to use the old-style hashing algorithm.

    More info:
    http://dev.mysql.com/doc/refman/5.0/en/old-client.html

    Good luck!

 

 

Similar Threads

  1. v154 Lost connection to database
    By Bob Higgins in forum General Questions
    Replies: 4
    Last Post: 25 Aug 2015, 05:56 AM
  2. Lost Admin connection to Database
    By motherwestwind in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 23 Jul 2014, 02:42 AM
  3. v151 Please help! I've lost my connection to my database
    By motherwestwind in forum Installing on a Linux/Unix Server
    Replies: 18
    Last Post: 4 Jul 2014, 11:15 AM
  4. Replies: 14
    Last Post: 22 Feb 2012, 09:27 AM

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