Link to home
Start Free TrialLog in
Avatar of motioneye
motioneyeFlag for Singapore

asked on

Mysql, How to enable row based log

Currently I have already enabled binary log as statement base logging, how do I enable binary logs as row base logging
ASKER CERTIFIED SOLUTION
Avatar of Umesh
Umesh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of motioneye

ASKER

Ok I have set it explicitly to "ROW" and perfrom some deletion on tables, I check what is captured in binlog but it still in statement based,



SET TIMESTAMP=1234760963/*!*/;
BEGIN
/*!*/;
# at 847
#090216 13:09:23 server id 1  end_log_pos 961   Query   thread_id=6     exec_time=0     error_code=0
SET TIMESTAMP=1234760963/*!*/;
delete from address where id >450001 and id <450116
/*!*/;
# at 961
#090216 13:09:23 server id 1  end_log_pos 988   Xid = 40
COMMIT/*!*/;
DELIMITER ;
# End of log file
ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Did you try this at your end? pls let me know.

Thanks,
Umesh