You could try running the CLI command directly as suggested in my message above. Assuming you are using Windows these would be the steps:
- Make sure all instances of n8n are closed (restart your machine to be sure nothing is running in the background)
- Backup your database (just in case), it should be a file named
database.sqlitein theC:\Users\<Username>\.n8ndirectory (replace<Username>with your actual Windows username - Then (assuming you are on Windows) run the below command in your terminal:
C:\Users\<Username>\AppData\Local\Programs\n8n\resources\app\node_modules\n8n\bin\n8n.cmd user-management:reset
You should get a response of Successfully reset the database to default user state. like below:
On the next start of n8n desktop, you should then see the “Set up owner account” screen on which you can click the “Skip setup for now” button to avoid setting a new password.
If this fails, you can also try this approach shared by @Shirobachi (again making sure to take a backup beforehand): Password recovery - #3 by Shirobachi
