Discovered mariadb corrupted during apt-get update

I have removed and reinstall Mariadb imported ERPNext dB what user do I use to allow ERPNext to connect?
I see the info in site_config.json but no user and what permission on the db?

The last time I relied on ERPNext backup for a restore it was a disaster so if I can just create the connection string I don’t have to go through the bench restore…

ok got this up and working but haven’t found the right permissions for the user in MySQL what is the minimum rights it needs, now I have it set to all which is not very good?