When I am trying to check binary log:
SHOW BINARY LOGS;
I get this error:
ERROR 1381 (HY000): You are not using binary logging.
How to resolve this? Can anybody help?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Set the
log-binvariable in your MySQL configuration file, then restart MySQL.An example
my.cnf(on Linux/unix) ormy.ini(on Windows) would look like:Once restarted, MySQL automatically creates a new binary log (does so upon every restart).
You may also wish to look at the following variables:
Read details on the MySQL documentation. If you’re after replication setup (a primary reason for using binary logs), check out Replication configuration checklist.