Solved

MYSQL, log shipping for multiple DB

Posted on 2013-05-25
1
671 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
ID: 39197233
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating and Managing Databases with phpMyAdmin in cPanel.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 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