mysql常用选项

WBOY
Release: 2016-06-07 15:15:01
Original
995 people have browsed it

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入 binlog-format可以取值: STATEMENT (default),ROW,MIXED。必须有SUPER才可以更改。不推荐replication正在进行时,修改binlog-format值。 binlog-do-db(binlog-ignore-db、replicate-do-db、replic

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入

  binlog-format可以取值: STATEMENT (default),ROW,MIXED。必须有SUPER才可以更改。不推荐replication正在进行时,修改binlog-format值。

  binlog-do-db(binlog-ignore-db、replicate-do-db、replicate-ignore-db)对于多个数据库,必须用多行。因为数据库名字可以包含逗号,所以用逗号分隔多个数据库名字,会被认为是一个包含了逗号的数据库的名字。

  无论binlog-format是什么,象create table和alter table之类的语句,总是以statement的格式记录在二进制日志中的。

  binlog-do-db(binlog-ignore-db、replicate-do-db、replicate-ignore-db)生效与binlog-format有关:

  binlog-format为STATEMENT时,生效的数据库为default database。

  binlog-format为ROW时,生效的为表的所在的数据,与default database无关。

  log-slave-updates 是否记录复制的更新。当用于级联复制时,很有必要。而在双主模式中,应当取FALSE。

  auto_increment_increment

  auto_increment_offset

  取值为: auto_increment_offset + N*auto_increment_increment

  sync-binlog 取值为0时,由操作系统的文件系统决定何时同步二进制日志。大于0时,为N个commit group后,同步到二进制日志。取值为1,最安全,但性能较低。

  slave-ignore-errors 忽略复制的错误。不建议取值为all。正常情况下,不应该会有错;如果出错,应当解决错误,而不是忽略错误。

  log-error 日志记录文件,记录MySQL服务器启动、关闭等信息。Windows平台注意路径要用“/”分隔,而不是“\”。

  log-output (522页)

  日志的记录位置:FILE TABLE NONE

mysql常用选项

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!