Commit 45091dfc authored by Ranadeep Biswas's avatar Ranadeep Biswas
Browse files


parent b6435986
# DBCop
## Usage
1. Clone it.
git clone
2. Compile and install using `cargo` and run.
Make sure `~/.cargo/bin` is in your system path and MySQL server is running on `localhost` at `3306` port.
cd dbcop
cargo install
./dbcop -u root -p <root_password>
or you can simply do after changing directory,
cargo run -- -u root -p <root_password>
3. Slow query log will be available at `mysql.slow_log` table.
4. You can fetch the queries of a particular thread using,
SELECT * FROM mysql.slow_log WHERE thread_id = ?
Replace `?` with the number corresponding to a thread from `dbcop` output.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment