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

Updated README

parent 3d17ff16
......@@ -7,22 +7,16 @@
git clone git@gitlab.math.univ-paris-diderot.fr:ranadeep/dbcop.git
```
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.
2. Fire up Galera cluster using `docker-compose`.
```
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>
cd docker
sudo docker-compose up
```
3. Slow query log will be available at `mysql.slow_log` table.
4. You can fetch the queries of a particular thread using,
3. Compile and install using `cargo` and run.
Make sure `~/.cargo/bin` is in your system path.
```
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