Binary log error in mysql -


When I'm trying to check the binary log:

  Show binary logs;    How to solve it? Can anyone help you?  

Set the log-in variable in your MySQL configuration file, then MySQL Restart.

An example my.cnf (on Linux / Unix) or my.ini (on Windows) will look like this:

  [client] ... [mysqld] ... log-bin = mysql-bin ---   

Once restarted, MySQL automatically opens a new binary log (It does this on every resume) You can also see the following variable:

  server-id = 1 expire_logs_days = 4 sync_binlog = 1   

read the description. If you are after replication setup (the primary reason for using binary logs), check out.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -