Solved

mysql create database master slave

Posted on 2014-07-29
2
275 Views
Last Modified: 2014-07-31
Hello,

I have a master slave replication configuration

I need to create a new database.

if i run CREATE DATABASE , will it replicate to the slave ?

will the subsequent CREATE TABLE commands then also replicate to the slave ?

all DB's are currently replicated..

This is a prod system , and i want to be sure, it wont break..have never done this before.
0
Comment
Question by:adammet04
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 40226389
in short: yes.
unless you don't replicate the mysql db, actually:
http://bugs.mysql.com/bug.php?id=5460

in which case you must first create the db on (all) the slave(s) before you do it on the master...
0
 
LVL 3

Author Comment

by:adammet04
ID: 40226455
ok i dont replicate the mysql db..

thanks for this info..much appreciated, will test and confirm and award if accurate.
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

I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

729 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