add tests

This commit is contained in:
Timofey Turenko
2017-05-17 18:16:06 +03:00
committed by Markus Mäkelä
parent dbfd631fed
commit 8c6ca38a8a
594 changed files with 48376 additions and 0 deletions

View File

@ -0,0 +1,25 @@
#ifndef SQL_CONST_H
#define SQL_CONST_H
const char * create_repl_user =
"grant replication slave on *.* to repl@'%%' identified by 'repl'; "
"FLUSH PRIVILEGES";
const char * setup_slave =
"change master to MASTER_HOST='%s', "
"MASTER_USER='repl', "
"MASTER_PASSWORD='repl', "
"MASTER_LOG_FILE='%s', "
"MASTER_LOG_POS=%s, "
"MASTER_PORT=%d; "
"start slave;";
const char * setup_slave_no_pos =
"change master to MASTER_HOST='%s', "
"MASTER_USER='repl', "
"MASTER_PASSWORD='repl', "
"MASTER_LOG_FILE='mar-bin.000001', "
"MASTER_LOG_POS=4, "
"MASTER_PORT=%d";
#endif // SQL_CONST_H