Solved

MYSQL, log shipping for multiple DB

Posted on 2013-05-25
1
637 Views
Last Modified: 2013-05-25
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
Comment
Question by:SiemensSEN
1 Comment
 
LVL 5

Accepted Solution

by:
DOSLover earned 200 total points
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now