Jump to content

Create superadmin via command line


Recommended Posts

I can run mysql commands. Some questions :

In ps_employee_shop, to set an admin role, I just have to set ps_shop to 1 ?

How to create a new entry the correct way ? Is it something like that ?

INSERT INTO `db`.`ps_employee` (`id_employee`, `id_profile`, `id_lang`, `lastname`, `firstname`, `email`, `passwd`) VALUES ('2', '1', '1', 'New', 'Admin', '[email protected]', 'NEWPASSWORD');

INSERT INTO 'db'.'ps_employee_shop' ('id_employee', 'id_shop') VALUES ('2', '1');

Thank you.

 

Link to comment
Share on other sites

id_profile should be 1, id_shop should be your shop id, could be null, 0, or 1, or another number if you have multiple shops. Check the other entries and just conform to that. Use a real email, you will need to reset your password before you can access

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...