Ad Widget

Collapse

I have deleted the super admin user, how can i do to create a new ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • niak
    Member
    • Nov 2007
    • 30

    #1

    I have deleted the super admin user, how can i do to create a new ?

    Hi everybody

    I have deleted the super admin user, how can i do to create a new super admin user ?

    Thanks in advance for your help !
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #2
    Insert a new user in 'users' table with type=3, maybe ?

    Passwords are simple MD5 hashes so you can generate the new password with MySQL's builtin MD5() function.

    Comment

    • dotneft
      Senior Member
      • Nov 2008
      • 699

      #3
      INSERT INTO users VALUES (1,'Admin','Zabbix','Administrator','5fce1b3e34b52 0afeffb37ce08c7cd66','',0, 900,'en_gb',30,3,'default.css',0,'',0);
      INSERT INTO users VALUES (2,'guest','Default','User','d41d8cd98f00b204e9800 998ecf8427e','',0,900,'en_gb',30,1,'default.css',0 ,'',0);

      ../create/data/data.sql
      Last edited by dotneft; 26-01-2009, 20:10.

      Comment

      • niak
        Member
        • Nov 2007
        • 30

        #4
        OK thank you very much for reply It's work !

        Here there is a function to translate password in md5 password (the site is in french) http://www.bibmath.net/crypto/moderne/md5.php3

        Bye

        Comment

        • Calimero
          Senior Member
          • Nov 2006
          • 481

          #5
          You can also use MySQL's built-in md5 function:

          SELECT MD5('whatever');

          Comment

          • niak
            Member
            • Nov 2007
            • 30

            #6
            Exactly, this function works very good ! thx

            Comment

            Working...