Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jul 2009
    Posts
    58
    Plugin Contributions
    0

    Default How to recover lost passwords and usernames?

    Two or three years ago I built a few zencart websites (Some was just for practice) but left them and havent touched them for years.
    Now I cant remember the username and passwords and cant access the admin panels.
    I do have access to the control panel of my hosting companies and can access the code.
    Can somebody tell me where to go to find the admin username and passwords?
    Thanks
    Dean

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How to recover lost passwords and usernames

    I just did a quick search in the FAQs for "admin password", and this link came up: http://www.zen-cart.com/content.php?...rd-(i-lost-it)
    .

    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. #3
    Join Date
    Jul 2009
    Posts
    58
    Plugin Contributions
    0

    Default Re: How to recover lost passwords and usernames

    I actually went through that but cant figure out what it is saying. It seems to have left out the first couple parts of the path where you need to go. Shouldent there be some place in the site coding where the password and username is located (Such as admin/includes/config.php or something similar?)

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How to recover lost passwords and usernames

    No. The admin password information is in the *database*. Not in any .php files.

    Use phpMyAdmin (provided by your hosting company) to access your database and run the statements as described in that article.
    If you need help with how that works, contact your hosting company.
    .

    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. #5
    Join Date
    Jul 2009
    Posts
    58
    Plugin Contributions
    0

    Default Re: How to recover lost passwords and usernames

    Thanks. I am trying to do this but when I do I get this error message:
    ----------------------------------
    Error
    SQL query:

    DELETE FROM admin WHERE admin_name = 'Admin';


    MySQL said:

    #1146 - Table 'amunre_zc6.admin' doesn't exist
    ---------------------------------------
    Any ideas?

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

    Default Re: How to recover lost passwords and usernames

    Did you open the database to see if there ARE tables there and that one of them is named admin?
    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.

  7. #7
    Join Date
    Jul 2009
    Posts
    58
    Plugin Contributions
    0

    Default Re: How to recover lost passwords and usernames

    There are tables but none named admin. There is zen_admin, zen_admin_pages and several others with admin in the name but none just admin.

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

    Default Re: How to recover lost passwords and usernames

    Then, your prefix is zen_
    Following the instructions in the note, for 1.3.9 and older it would look like:
    PHP Code:
    DELETE FROM zen_admin WHERE admin_name 'Admin';
    INSERT INTO zen_admin (admin_nameadmin_emailadmin_passadmin_level)
    VALUES ('Admin''admin@localhost''351683ea4e19efe34874b501fdbf9792:9b'1); 
    For 1.5.0 and newer:
    PHP Code:
    DELETE FROM zen_admin WHERE admin_name 'Admin';
    INSERT INTO zen_admin (admin_nameadmin_emailadmin_passadmin_profile)
    VALUES ('Admin''admin@localhost''351683ea4e19efe34874b501fdbf9792:9b'1); 
    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.

  9. #9
    Join Date
    Jul 2009
    Posts
    58
    Plugin Contributions
    0

    Default Re: How to recover lost passwords and usernames

    Thanks. That was complicated but I finally got it working. Learned a bit more about how the database works to. Thanks for the help

  10. #10
    Join Date
    Jul 2009
    Posts
    58
    Plugin Contributions
    0

    Default Re: How to recover lost passwords and usernames

    I have most of my websites fixed now so thanks for that help.
    But one of them I can access my admin now after resetting the passwords but I cant change the user in this domain.
    Instead of the "Admin Access Management tab." All I have is "Admin home"
    When I try "Tools" then "Admin settings" I get a general error saying "Page not found"
    Any ideas what wrong with my website admin settings? (I upgraded to version 5)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v153 Help I lost admin name and password and can't recover
    By Ginger9909 in forum Basic Configuration
    Replies: 5
    Last Post: 18 Jun 2016, 09:02 PM
  2. v153 How to convert bunch of text passwords to ZC-format passwords?
    By oavs in forum General Questions
    Replies: 3
    Last Post: 24 Sep 2014, 01:50 AM
  3. v139h Retreiving lost admin passwords
    By thestampnomad in forum General Questions
    Replies: 1
    Last Post: 8 May 2014, 03:51 AM
  4. Can I merge my DB with a backup to recover lost info?
    By tat2nu in forum General Questions
    Replies: 0
    Last Post: 19 Feb 2010, 05:44 PM
  5. How do I recover a lost order.
    By sky1 in forum General Questions
    Replies: 0
    Last Post: 4 Jan 2008, 09:54 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