Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

MySQL statements

Posted on 2011-09-20
4
Medium Priority
?
356 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
[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
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
mykde earned 2000 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
In this article, we’ll look at how to deploy ProxySQL.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

609 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