Is there a way to enable a general log of queries like in MySQL?


MySQL has a feature to enable general log (see the documentation).

Is there the same way to do it in CockroachDB?

Hi! Yes, CockroachDB has a feature like this. See the docs on SQL logging here: Troubleshoot SQL Behavior | CockroachDB Docs

There are a few options. Note that there will be a lot of improvements in the v21.1 release, which will come out soon.

1 Like