• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 815
  • Last Modified:

MYSQL, log shipping for multiple DB

Hello,
  I have multiple DB on mySQL server. Currently, only one log-bin file is generated. Is it possible to have a  log-bin for each Database.

Also, if you have one log-bin for all DB . The what would be the syntax for mySQLlogbin to restore the logs for a particular DB


Thanks for your help
0
SiemensSEN
Asked:
SiemensSEN
1 Solution
 
DOSLoverCommented:
With mysqld_multi, a separate section can be created for each database specifying separate path and logs. This will create separate instances of MySQL for each db.

Also, mysqlbinlog command with database option can separate log entries for a database, even though we use the same log for multiple databases.
   > mysqlbinlog   binlog.00001  --database=testdb123
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now