DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Rafael CorrΓͺa Gomes
Rafael CorrΓͺa Gomes

Posted on • Updated on • Originally published at blog.rafaelcg.com

How to import and export admin users on Magento 2?

Your admin users data are on the tables admin_user and admin_passwords in your Magento 2 database, you can use these commands to export and then import in your second store:

Export

$ mysqldump -p --user=username dbname admin_user admin_passwords > myAdminUsers.sql
Enter fullscreen mode Exit fullscreen mode

Import

$ mysql -u username -p -D dbname < myAdminUsers.sql
Enter fullscreen mode Exit fullscreen mode

Important

If you use a database prefix, don't forget to use on these commands above.

Top comments (0)

⬇️ The only reason people scroll to the bottom...

Β 

is because they want to read more. Sign up for an account to bookmark, comment, and react to articles that interest you.