Hello,
I have a mysql server 5.5.57, for debian-linux and not connected with any other system. I enabled the binlog fecility in it, but not found any content from binlolg after the changes in mysql database. Any one can help me?
used command: mysqlbinlog mysql-bin.000031
result: /!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1/; /!40019 SET @@session.max_insert_delayed_threads=0/; /!50003@OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0/; DELIMITER /!/; mysqlbinlog: File ‘mysql-bin.000031’ not found (Errcode: 2) DELIMITER ; # End of log file ROLLBACK /* added by mysqlbinlog /; /!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/; /!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0/;)
My ‘my.cnf’ file configuration is:
[mysqld] log-bin=mysql-bin expire_logs_days = 2 # binary logging format –row binlog_format=row binlog_do_db = koha_library binlog_ignore_db = perfomance_schema, mysql, information_schema
#
Basic Settings
# user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp lc-messages-dir = /usr/share/mysql skip-external-locking #
Instead of skip-networking the default is now to listen only on
localhost which is more compatible and is not less secure.
bind-address =127.0.0.1
#
* Fine Tuning
# key_buffer =16M max_allowed_packet = 16M thread_stack = 192K thread_cache_size = 8
This replaces the startup script and checks MyISAM tables if needed
the first time they are touched
myisam-recover = BACKUP
max_connections = 100
table_cache = 64
thread_concurrency = 10
#
* Query Cache Configuration
# query_cache_limit = 1M query_cache_size = 16M # # #
Both location gets rotated by the cronjob.
Be aware that this log type is a performance killer.
As of 5.1 you can enable the log at runtime!
general_log_file = /var/log/mysql/mysql.log
general_log = 1
#
Error log – should be very few entries.
# log_error = /var/log/mysql/error.log #
Here you can see queries with especially long duration
log_slow_queries = /var/log/mysql/mysql-slow.log
long_query_time = 2
log-queries-not-using-indexes
#
The following can be used as easy to replay backup logs or for replication.
note: if you are setting up a replication slave, see README.Debian about
other settings you may need to change.
server-id = 0
log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 10 max_binlog_size = 100M