Solved

MySQL statements

Posted on 2011-09-20
4
347 Views
Last Modified: 2012-05-12
I have a Master DB and slave DB setup for replication and came across one of these statements on a website
----------------------------------------------
SET SQL_LOG_BIN = 0;
This statement is generally used with conjunction with replication
----------------------------------------------

Our Master DB logs bin files for replication on the slave server. Does running the above statement stop creating binlogs in the current session ?  Does running this command break the replication process ?

Your input and advice would be most appreciated

Thanks

0
Comment
Question by:Cobraiti
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
mykde earned 500 total points
ID: 36571579
SET SQL_LOG_BIN = 0;

Disables or enables binary logging for the current session (sql_log_bin is a session variable) if the client has the SUPER privilege.

The statement fails with an error if the client does not have that privilege.

If the statement fails with an error it could stop replication.
0
 

Author Comment

by:Cobraiti
ID: 36571832
So I could run this statement while replication is still running and it won't break the process assuming there are no errors - Would this be correct  ?

Thanks
0
 
LVL 3

Expert Comment

by:mykde
ID: 36571965
That is correct.
0
 

Author Comment

by:Cobraiti
ID: 36577987
Thanks for clarifying.

Much appreciated :)
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Loading csv or delimited data files to MySQL database is a very common task frequently questioned about and almost every time LOAD DATA INFILE comes to the rescue. Here we will try to understand some of the very common scenarios for loading data …
Introduction In this article, I will by showing a nice little trick for MySQL similar to that of my previous EE Article for SQLite (http://www.sqlite.org/), A SQLite Tidbit: Quick Numbers Table Generation (http://www.experts-exchange.com/A_3570.htm…
This video discusses moving either the default database or any database to a new volume.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

19 Experts available now in Live!

Get 1:1 Help Now