Skip to content

Commit 07f8aaa

Browse files
Fix enumeration
1 parent 3c094fc commit 07f8aaa

File tree

1 file changed

+22
-26
lines changed

1 file changed

+22
-26
lines changed

README.md

+22-26
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ Not tested with MySQL 5.7 with new replication protocol improvements.
2727

2828
### <a name="build-from-source"></a>Build from source
2929

30-
```bash
31-
git clone https://github.com/tarantool/mysql-tarantool-replication.git mysql_tarantool-replication
32-
cd mysql-tarantool-replication
33-
git submodule update --init --recursive
34-
cmake .
35-
make
36-
```
30+
```
31+
bash
32+
git clone https://github.com/tarantool/mysql-tarantool-replication.git mysql_tarantool-replication
33+
cd mysql-tarantool-replication
34+
git submodule update --init --recursive
35+
cmake .
36+
make
37+
```
3738

3839
[Back to contents](#contents)
3940

@@ -42,32 +43,27 @@ make
4243

4344
1. Set the `binlog_format` to `ROW`.<br>
4445
That can be done by editing the MySQL configuration file at `/etc/mysql/my.cnf`:
45-
46-
```
47-
binlog_format = ROW
48-
```
46+
```
47+
binlog_format = ROW
48+
```
4949

5050
2. Create a user for replication, for example:
51-
52-
```
53-
CREATE USER <username>@'<host>' IDENTIFIED BY '<password>';
54-
```
51+
```
52+
CREATE USER <username>@'<host>' IDENTIFIED BY '<password>';
53+
```
5554

5655
3. Grant replication privileges to the new user:
57-
58-
```
59-
GRANT REPLICATION CLIENT ON '<db>'.'<table>' TO <username>@'<domain>';
60-
GRANT REPLICATION SLAVE ON '<db>'.'<table>' TO <username>@'<domain>';
61-
GRANT SELECT ON '<db>'.'<table>' TO <username>@'<domain>';
62-
```
63-
56+
```
57+
GRANT REPLICATION CLIENT ON '<db>'.'<table>' TO <username>@'<domain>';
58+
GRANT REPLICATION SLAVE ON '<db>'.'<table>' TO <username>@'<domain>';
59+
GRANT SELECT ON '<db>'.'<table>' TO <username>@'<domain>';
60+
```
6461
>**Note**: you can use an asterisk (\*) as a wildcard instead of specifying a database and a table.
6562
6663
4. Flush the changes:
67-
68-
```
69-
FLUSH PRIVILEGES
70-
```
64+
```
65+
FLUSH PRIVILEGES
66+
```
7167

7268
[Back to contents](#contents)
7369

0 commit comments

Comments
 (0)