~mysqlatfacebook/mysqlatfacebook/tools

« back to all changes in this revision

Viewing changes to faker/slave.c

  • Committer: Domas Mituzas
  • Date: 2013-04-22 04:08:55 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: domas@fb.com-20130422040855-zcmp44juphhixcr8
* Handle end-of-file better
* Handle reconnects better
* Add more configuration options
* Support MySQL 5.6 checksummed binlog format

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
{
22
22
    while (!mysql_real_connect
23
23
           (mysql, "127.0.0.1", db_username, db_password, NULL,
24
 
            db_port, NULL, CLIENT_MULTI_STATEMENTS)) {
 
24
            db_port, NULL, CLIENT_MULTI_STATEMENTS | CLIENT_REMEMBER_OPTIONS)) {
25
25
        g_warning("Couldn't connect to MySQL: %s", mysql_error(mysql));
26
26
        sleep(1);
27
27
    }