Commit bba4d02e authored by Ranadeep Biswas's avatar Ranadeep Biswas
Browse files

Updated README

parent 3d17ff16
...@@ -7,22 +7,16 @@ ...@@ -7,22 +7,16 @@
git clone git@gitlab.math.univ-paris-diderot.fr:ranadeep/dbcop.git git clone git@gitlab.math.univ-paris-diderot.fr:ranadeep/dbcop.git
``` ```
2. Compile and install using `cargo` and run. 2. Fire up Galera cluster using `docker-compose`.
Make sure `~/.cargo/bin` is in your system path and MySQL server is running on `localhost` at `3306` port.
``` ```
cd dbcop cd docker
cargo install sudo docker-compose up
./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. 3. Compile and install using `cargo` and run.
Make sure `~/.cargo/bin` is in your system path.
4. You can fetch the queries of a particular thread using,
``` ```
SELECT * FROM mysql.slow_log WHERE thread_id = ? cd dbcop
cargo install
dbcop
``` ```
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