Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Posts
    163
    Plugin Contributions
    0

    Default Error message -- #1146 - Table 'classyca_poscheap.admin' doesn't exist

    I had not used Zen CArt for awhile and when I did I was n ot able to enter
    the correct USERNAME ID. I know the password is correct becasue I was able to get a new one.

    In a ZC forum article is shows how to go back to a default Username ID
    name of Admin.
    In the article it suggests going to PHPMyAdmin and installing the following code.

    I have not changed the ZC version in about 7 years. I used the following code


    DELETE FROM admin WHERE admin_name = 'Admin';
    INSERT INTO admin (admin_name, admin_email, admin_pass, admin_level)
    VALUES ('Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);

    When I run this I get the following error.
    MySQL said: Documentation
    #1146 - Table 'classyca_poscheap.admin' doesn't exist

    Thanks for any help.

    BILL

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

    Default Re: Error message -- #1146 - Table 'classyca_poscheap.admin' doesn't exist

    The correct FAQ article is: http://www.zen-cart.com/content.php?...admin-password

    And the small print there mentions that if your ZC is set up to add tablename-prefixes then you'll need to insert that prefix before "admin" in two places:

    DELETE FROM admin ...
    INSERT INTO admin ...

    would become:

    DELETE FROM zen_admin ...
    INSERT INTO zen_admin ...

    or

    DELETE FROM fred_admin ...
    INSERT INTO fred_admin ...

    etc

    So ... go look in your /includes/configure.php for the DB_PREFIX value, and make the appropriate substitution
    .

    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.

 

 

Similar Threads

  1. v151 upgrading error 1146 table doesn't exist
    By scottrdj in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 31 Dec 2012, 03:05 PM
  2. MYSQL error #1146 table doesn't exist - help!
    By TheKenster in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 20 Jan 2012, 01:48 PM
  3. Admin Login error:1146 Table 'vmgad_store.linkpoint_api' doesn't exist
    By martinsure in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 10 Dec 2010, 03:56 PM
  4. 1146 Table error zenconfiguration doesn't exist
    By gayelston in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 1 Dec 2007, 10:26 PM
  5. Replies: 2
    Last Post: 31 Aug 2007, 03:34 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