mysqlbinlog 使用

1:先确定 打开binlog   log_bin = /var/log/mysql/mysql-bin.log
binlog_do_db           = include_database_name

2: shell>mysqlbinlog mysql-bin.000027



3: ./mysqlbinlog  --database="database" --socket=/tmp/mysql.sock --stop-date="2008-09-23 09:59:59" ../data/mysql-bin.000027 | mysql -uroot -pwangkai

你可能感兴趣的:(mysql,socket)