[mysqld]
binlog-do-db = databasename1
binlog-do-db = databasename2
binlog-do-db = databasename3
……
且不可写成binlog-do-db = databasename1,databasename2,databasename3
mysql会把databasename1,databasename2,databasename3,而且在show slave status\G;显示时不会报错,排错很麻烦的。