Is there any tool/commands to migrate badger db to mysql or postresql ?
No, Badger is a NoSQL DB. You could build your own tool with your rules to migrate the DB. But I doubt there is a tool that migrates data from a KV database to SQL. There are two different models. Although KV is simpler, I’ve never seen this need to migrate from KV to SQL. But who knows?