Answers:
Matt Healy回答了有关如何从mysql客户端(在运行的服务器上)显示/设置格式的问题, SET GLOBAL binlog_format = [STATEMENT|ROW|MIXED]
要永久设置该值,并假设您有权访问my.cnf,请添加:
[mysqld]
...
binlog_format=XX
...
然后重新启动服务器。
binlog-format=format
要查看当前的binlog_format值:
mysql> show variables like 'binlog_format';
+---------------+-----------+
| Variable_name | Value |
+---------------+-----------+
| binlog_format | STATEMENT |
+---------------+-----------+
1 row in set (0.00 sec)
要更改它:
mysql> SET GLOBAL binlog_format = 'STATEMENT';
mysql> SET GLOBAL binlog_format = 'ROW';
mysql> SET GLOBAL binlog_format = 'MIXED';
资料来源:http : //dev.mysql.com/doc/refman/5.1/en/binary-log-setting.html