1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Add user directly to database

Discussion in 'Off Topic' started by RichardKYA, Aug 23, 2015.


Batman or Superman?

  1. Batman

  2. Superman

  1. RichardKYA

    RichardKYA Well-Known Member

    Hello all and everyone else too,

    This isn't completely "off-topic", but it's not really a support question either, it's just a "I wonder if and how I could do that" kinda question.

    Anyway, I was wondering, lets say, I lost all my users in the database, including my super admin account and I had no back ups, how would I create a new user in the database so that I could regain access to the ACP, etc?

    Don't worry, this hasn't happened, it's just something I would like to know how to do in case it ever does lol

    Thank you :)
  2. Brogan

    Brogan XenForo Moderator Staff Member

    If that ever happened you would need to restore from a backup as your installation would be corrupt due to the missing user records.
  3. RichardKYA

    RichardKYA Well-Known Member

    OK, I don't know how, but for the sake of this question, what if the main Super Admin account (The one created at install) was somehow deleted, but there were still other "normal" users in the db, could one of those be made admin inside the db, then added to the config.php so that you could use that account as Super Admin to re-create new admin accounts inside the ACP?
    Last edited: Aug 23, 2015
  4. Brogan

    Brogan XenForo Moderator Staff Member

    It's something I've had to do on occasion for customers.
    RichardKYA likes this.

Share This Page