Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Dev Team
mysql-tarantool-replication
Commits
07f8aaa1
Commit
07f8aaa1
authored
Feb 20, 2017
by
GeorgyKirichenko
Browse files
Fix enumeration
parent
3c094fca
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
07f8aaa1
...
...
@@ -27,13 +27,14 @@ Not tested with MySQL 5.7 with new replication protocol improvements.
### <a name="build-from-source"></a>Build from source
```
bash
git clone https://github.com/tarantool/mysql-tarantool-replication.git mysql_tarantool-replication
cd
mysql-tarantool-replication
git submodule update
--init
--recursive
cmake
.
make
```
```
bash
git clone https://github.com/tarantool/mysql-tarantool-replication.git mysql_tarantool-replication
cd mysql-tarantool-replication
git submodule update --init --recursive
cmake .
make
```
[
Back to contents
](
#contents
)
...
...
@@ -42,32 +43,27 @@ make
1.
Set the
`binlog_format`
to
`ROW`
.
<br>
That can be done by editing the MySQL configuration file at
`/etc/mysql/my.cnf`
:
```
binlog_format = ROW
```
```
binlog_format = ROW
```
2.
Create a user for replication, for example:
```
CREATE USER <username>@'<host>' IDENTIFIED BY '<password>';
```
```
CREATE USER <username>@'<host>' IDENTIFIED BY '<password>';
```
3.
Grant replication privileges to the new user:
```
GRANT REPLICATION CLIENT ON '<db>'.'<table>' TO <username>@'<domain>';
GRANT REPLICATION SLAVE ON '<db>'.'<table>' TO <username>@'<domain>';
GRANT SELECT ON '<db>'.'<table>' TO <username>@'<domain>';
```
```
GRANT REPLICATION CLIENT ON '<db>'.'<table>' TO <username>@'<domain>';
GRANT REPLICATION SLAVE ON '<db>'.'<table>' TO <username>@'<domain>';
GRANT SELECT ON '<db>'.'<table>' TO <username>@'<domain>';
```
>**Note**: you can use an asterisk (\*) as a wildcard instead of specifying a database and a table.
4.
Flush the changes:
```
FLUSH PRIVILEGES
```
```
FLUSH PRIVILEGES
```
[
Back to contents
](
#contents
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment