Admin password lost

Hello, by inadvertence I changed the admin password and I do not manage to log in anymore. Is there a way to get it back ?

This can probably be done via the database directly but I’m not sure off the top of my head the exact command.