简体   繁体   中英

Choosing what to log in mysql binary logs

I'm running the mysql-server-5.0.95-1.el5_7.1.

I'm getting some strange behaviours in the database, and I'd like to store some actions.

Reading the Mysql Reference Manual, I set the binary-logs and started logging all what happened in the database.

But the log files are too big, and I'd like to know if there is a way to configure the binary log to store just some actions (like ALTER TABLE, or DELETE, or CREATE INDEX) instead logging all actions.

If yes, how can I do it.

Rgds.

The point of the binary logs is to record state changes on the server. If it changes state, it gets recorded.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM