Dec 27
  昨天做数据库同步的时候,本来想用日志更新的方式做的,后来发现--log-update选项在my.cnf文件里面加入后,不能生效。
  到http://dev.mysql.com/doc/找5.0的文档看了一下,发现mysql5.0的更新树里面有这样一段话:
引用
Removed the update log. It is fully replaced by the binary log. If the MySQL server is started with --log-update, it is translated to --log-bin (or ignored if the server is explicitly started with --log-bin), and a warning message is written to the error log. Setting SQL_LOG_UPDATE silently sets SQL_LOG_BIN instead (or do nothing if the server is explicitly started with --log-bin).

  也就是说,mysql5.0下面已经用--log-bin代替了--log-update,并且my.cnf文件里面如果已经有log-bin定义的话,就会忽略log-update。难怪昨天的操作会不行。
Tags: ,
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]