Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26
  1. #21
    Join Date
    Sep 2007
    Location
    Australia, Sydney
    Posts
    23
    Plugin Contributions
    0

    Default Re: Data Base Issues aswell as other ppl here

    Thanks Chuckl,

    yes i've copy and paste the User name and passwords, so i dont think it's cap issues with numbers and letters... i just dont understand why the phpbb is easy to install than ZC, phpbb connects to the db quite with ease, but ZC hesitate to connect to the db...

    thanks guys for trying to help me, i hope we will get to the bottom of this..
    HBTech "excellence in technology services"

  2. #22
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Data Base Issues aswell as other ppl here

    What's most odd is that Zen Cart *does* connect to the database to verify username/password/database long before it starts running SQL commands on it. It seems that its second attempt to open the database is failing fatally for unexplained reasons.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #23
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Data Base Issues - not connected - during install

    Okay ... there's one spot in the installer where it checks to be sure that the requested database name actually exists ... and after it's done checking, doesn't close the database connection.

    Thus, since your hosting account strictly enforces a single connection, it's denying you access.

    If you're going to have multiple customers hitting your site, you're going to need to be able to connect to the database multiple times simultaneously. You'll need to get your hosting company to relax your restrictions.


    The one-line fix to deal with the error message from the first post is this:
    /zc_install/includes/classes/installer.php
    Add the close() on line 182:
    Code:
        function dbExists($zp_create, $zp_type, $zp_host, $zp_username, $zp_pass, $zp_name, $zp_error_text, $zp_error_code) {
          //    echo $zp_create;
          if ($zp_create != 'true' && $this->error == false) {
            if ($zp_type == 'mysql') {
              @mysql_connect($zp_host, $zp_username, $zp_pass);
              if (@mysql_select_db($zp_name) == false) {
                $this->setError($zp_error_text.'<br />'.@mysql_error(), $zp_error_code, true);
              }
              @mysql_close();
            }
          }
        }
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #24
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Data Base Issues - not connected - during install

    You're also getting an error in your footer like this:
    Code:
    0 Error - Could not connect to Database
    in:
    [select count(*) as total from sessions where sesskey ='...blahblah.......']
    This is caused by the same kind of problem. There are 3 workarounds:
    a) increase database connection count
    b) use 'file' for the session storage instead of database (choice during installation)
    c) use an older version of PHP (due to a PHP5.2 quirk), or rewrite the session handler code

    The first is easiest.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #25
    Join Date
    Sep 2007
    Location
    Australia, Sydney
    Posts
    23
    Plugin Contributions
    0

    Default Re: Data Base Issues - not connected - during install

    Thank you soo much DrByte,.. you are a true Zen Cart Sensei Master...

    wow...also thankyou everybody who tried to help...

    now i can try to get my store up and running....

    just that simple diagnosed by DrByte make wonders!
    HBTech "excellence in technology services"

  6. #26
    Join Date
    Aug 2007
    Posts
    70
    Plugin Contributions
    0

    Default Re: Data Base Issues - not connected - during install

    1062 Duplicate entry '' for key 2
    in:
    [insert into phpbb_users (user_id, username, user_password, user_email, user_regdate) values ('84', 'PoserUnd', 'f7370f89b8fa54a405a6ebd63b477eaf', '[email protected]', '1190907431')]
    This is what I get when a new customer signs up.

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Data Base not complete on fresh install
    By mitchcecg in forum Bug Reports
    Replies: 1
    Last Post: 12 Feb 2015, 08:45 PM
  2. v139g Cannot use the Sql install patch or import direct to data base
    By michelleodin in forum General Questions
    Replies: 1
    Last Post: 5 Jul 2014, 12:27 AM
  3. Importing New Template... What Data Base Issues Will I Have?
    By jeffis in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Mar 2011, 11:06 AM
  4. Are these issues connected?
    By r€nato in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 27 Oct 2008, 03:45 PM
  5. Moved servers and data base will not import any help?
    By touchclothing in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 11 Apr 2008, 10:08 PM

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