Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: set new admin via SQL phpmyadmin

    samuel.sabandar

    • Neu im Forum
    • Beiträge: 1
    set new admin via SQL phpmyadmin
    am: 30. März 2014, 18:59:42
    Hi, please help

    I lost my admin info

    How do you know what is the current admin email?
    How do you set a new admin email and password via SQL phpmyadmin command?

    thanks


    Linkback: https://www.modified-shop.org/forum/index.php?topic=29818.0
    rechtstexte für onlineshop

    ShopNix

    • Viel Schreiber
    • Beiträge: 1.208
    Re: set new admin via SQL phpmyadmin
    Antwort #1 am: 30. März 2014, 19:50:26
    select customers_email_address from customers where account_type = 0;

    Setting a new password by mysql is not so easy, because you have to set a hash instead of a plain password. You will find the coding in /inc/xtc_encrypt_password.inc.php

    Try to register as a new customer, set customers.account_type to 0 and all permissions in admin_access to 1 for the new customers customer_id.

    baalze

    • Neu im Forum
    • Beiträge: 40
    Re: set new admin via SQL phpmyadmin
    Antwort #2 am: 31. März 2014, 13:22:41
    Code: SQL  [Auswählen]
    UPDATE customers SET customers_email_address = 'newemail', customers_password = MD5('newpassword') WHERE customers_id = 1

    where newemail, newpassword are placeholders for the new data.

    jannemann

    • modified Team
    • Beiträge: 6.275
    • Geschlecht:
    Re: set new admin via SQL phpmyadmin
    Antwort #3 am: 31. März 2014, 21:52:48
    Hi samuel,

    just take a look into the wiki for resetting the admin passwort:

    Adminpasswort rücksetzen per SQL-Befehl

    Schöne Grüße,
    Jan
    28 Antworten
    15525 Aufrufe
    18. März 2012, 22:58:01 von p3e
    3 Antworten
    4701 Aufrufe
    12. Dezember 2008, 11:58:52 von Anonym
    9 Antworten
    5030 Aufrufe
    14. Juli 2016, 13:10:16 von frankbackes
               
    anything