Solved

mysql create database master slave

Posted on 2014-07-29
2
268 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
2 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
Comment Utility
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
Comment Utility
ok i dont replicate the mysql db..

thanks for this info..much appreciated, will test and confirm and award if accurate.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A lot of articles have been written on splitting mysqldump and grabbing the required tables. A long while back, when Shlomi (http://code.openark.org/blog/mysql/on-restoring-a-single-table-from-mysqldump) had suggested a “sed” way, I actually shell …
Fore-Foreword Today (2016) Maxmind has a new approach to the distribution of its data sets.  This article may be obsolete.  Instead of using the examples here, have a look at the MaxMind API (https://www.maxmind.com/en/geolite2-developer-package). …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

728 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

10 Experts available now in Live!

Get 1:1 Help Now