Questions tagged [binary-log]
The binary-log tag has no usage guidance.
41
questions
0
votes
0answers
15 views
Recover database using only part of binary log MySql
I have made a backup, then I have executed several statements, including a delete. So I have recovered the backup but I only want to recover the binary log until before the delete operation, what ...
0
votes
1answer
29 views
Mariadb master slave replication : Empty Set / Not using Binary logs
I'm trying to setup a master slave replication in between 2 MariaDB Databases version 5.5.68, under CentOS7.
First steps are straigth forwards :
Modify my.cnf.conf and add the following lines under [...
1
vote
1answer
305 views
MySQL binlog_expire_logs_seconds not working
I have configured the database using SET GLOBAL binlog_expire_logs_seconds = 259200; query to purge binary logs older then 3 days. Using MySQL 8.0.22. This does not seem to have any effect. bin logs ...
0
votes
1answer
95 views
AWS RDS MySQL is it safe to change binary logging settings
I need to change few settings in RDS MySQL parameter group. I was wondering if it's safe to perform these changes or should I take a preventive approach ?
Here's the parameters I need to change:
...
2
votes
0answers
708 views
How to filter output of “SHOW BINLOG EVENTS”
Without talking about master/slave replication, I just want to customize which entries I see when querying the MySQL Binary-Logs with SHOW BINLOG EVENTS. Already tried to find the same information in ...
0
votes
1answer
14 views
how to recover the Database Data using binary logs?
One of our associate has deleted the database as well as the replica is there is a way to recover the database.
0
votes
2answers
508 views
View Binary Logs of GCP Postgres SQL instance
How to view Binary Logs(Transaction Logs) of a GCP Postgres SQL Instance? Can it be viewed in GCP Console?
I tried to use Stackdriver. But it only shows instance usage data.
Thanks
1
vote
1answer
607 views
Google CloudSQL Max Binary Log Size
Setting the value for max_binlog_size doesn't seem to be a supported flag in CloudSQL 2nd Generation MySQL instances.
On provisioning a new instance, I can see from running show variables; that max ...
0
votes
1answer
487 views
Logging of MySQL Queries and Forwarding to Syslog/Event log
I was to able to enable Error log, General Query log, Slow Query Log and Binary Log and was able to forward the logs to Syslog. I have few questions about logging.
1) The error log is automatically ...
0
votes
1answer
272 views
What is “table_id” in MySQL binary log events?
Is there any description for table_id in MySQL binary log events? Is it a unique value?
0
votes
1answer
858 views
what is the difference between master binary log and slave binary log in MySQL? How can I achieve same binary logs on both servers?
I have master and slave servers. Replication done. Now I did follow the below steps on both servers.
mysql> show binary logs;
+------------------+-----------+
| Log_name | File_size |
+----...
1
vote
1answer
1k views
SELECT queries in MySQL binary_log
I am trying to verify database histories. For that, I need to log and parse read-write accesses to a database.
I know MySQL mainly offers two types of logs - general query log and binary log. General ...
1
vote
1answer
613 views
When is the timestamp set in MySQL binlogs
I've had a search through previous questions but can't find an exact match to my question:
At what point during a query transaction is the binary log timestamp set and then written to the binary log?
...
1
vote
0answers
763 views
How replicate-ignore-db OR replicate-ignore-table works internally?
In MySQL replication we have replication filters:
replicate-ignore-db
replicate-ignore-table
These filters are used to ignore the database / table to replication on slave server.
During the creation ...
0
votes
1answer
97 views
MySQL Binary Logging Preventing Write Transactions - Bitnami
I'm trying to configure MySQL on a Bitnami-prepared VM for replication (Not to be confused with MySQL With Replication from Bitnami), and I am having issues with its binary logging.
When I add the ...
0
votes
1answer
277 views
How To Remove Specific Query From MySQL Binary Log
So I have a binary log that's taking forever to restore to because of some poorly written code that updates a table every second or so for every user that's currently logged in. Of course the restore ...
-1
votes
1answer
103 views
Which tool for database vesioning to use? liquibase vs mysql binary logs [closed]
I'm trying to build a process of refactoring, testing and deployment of my databases. After some kind of research I found liquibase as a nice tool for managing my database versions. As well similar ...
0
votes
0answers
187 views
Unable to apply binarylogs to amazon RDS
I'm trying to migrate from an EC2 mysql(percona galera) to rds mysql but I'm running into some issues. The initial import works great but after that I'm hitting an issue when trying to apply the ...
3
votes
4answers
5k views
MySQL binary log location Windows 2008 Server
I'm running a Windows 2008 Server with IIS, PHP and MySQL. MySQL is installed as a service. There's software on the server that uses a database that I need good backups of, including transaction ...
1
vote
1answer
1k views
mysql: need to avoid storing temp tables on binary logs
On mysql, I have two data bases "parque_test" and "tabelas_temporais", and binary logs are activated.
Every action that modifies an InnoDB table belonging to "parque_test" is recorded on the binary ...
1
vote
2answers
105 views
Binary logging in MySQL
Here is my.ini
# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin
I'm trying to binary logging of mysql database.
Please suggest me to enable ...
2
votes
0answers
2k views
MySQL binary logs will not start
In-Short: My binary logs aren't starting even though log-bin is set and specified. I'm not sure how to fix it.
I have a MariaDB instance running as a service on windows that I am attempting to ...
0
votes
1answer
63 views
Can not activate the log-bin
I have a database that uses the InnoDB engine on all his tables, running on a Windows Server 2008 r2 64bit in a VM farm. The policies of my organization promotes that every server has to have a ...
10
votes
2answers
12k views
MAMP Mysql Error - Failed to open log
I've been working with a MAMP installation for several weeks now, and when I started it up today it would not start. No mysql process was running so I checked the error log which shows the following ...
5
votes
2answers
441 views
mysqlbinarylog - uniqueness of table_id in TABLE_MAP_EVENT
I am trying to manually decode the mysql binary log ROW format. Every update/insert/delete event is preceeded by an TABLE_MAP_EVENT.
This event contains a table_id. I am using this id to build up an ...
2
votes
3answers
2k views
Is it possible to have separate binary logs per database in mysql?
I am looking at a replicated system that replicates four different databases to a bunch of slaves. I am having a problem that one application/database is running some big queries that are holding up ...
1
vote
1answer
553 views
Binary logarithm in O(1) time (operating on registers x86 or SIMD) without shifting?
I wanted to see if there is a method for finding the binary log of a number. Say you have the number 4 then the power to which you raise two to get four is 2.
I know this is possible with shifting ...
11
votes
2answers
22k views
How to compute log base 2 using bitwise operators?
I need to compute the log base 2 of a number in C but I cannot use the math library. The answer doesn't need to be exact, just to the closest int. I've thought about it and I know I could just use a ...
3
votes
1answer
647 views
Create hamming distance function in mysql without super privilege
I would like to use the hamming distance in my MySQL database (used over phpMyAdmin) but did not succeed in creating the function with the code given here.
I'm refering to this code:
CREATE FUNCTION ...
0
votes
2answers
1k views
Binary Log MySQL
I have some binary log files from localhost but when i write
mysqlbinlog mysql-bin.000001 > statament.sql
or a text file it just returns gibberish i.e.
/*!40019 SET @@session....
1
vote
1answer
2k views
run trigger without writing to binary log
I'm trying to insert rows into a table via a trigger or stored procedure without writing any data to the binary log. Is this possible? I know that for normal connections you can set SQL_LOG_BIN=0 to ...
0
votes
1answer
217 views
MySQL - saving binary log to table by default
I am using MySQL Community Server 5.1. I remember a while back I heard that it was possible to configure MySQL database to save the binary log information to a MySQL table. I did a brief search and ...
2
votes
1answer
1k views
MySQL binary log timestamps non sequential?
I do have a binary log dump here from MySQL 5.5.20 (row based). Now my slave stopped because the UPDATE event is before the INSERT event:
5424240-SET TIMESTAMP=1327402568/*!*/;
5424241-BEGIN
5424242-/...
2
votes
2answers
2k views
Does MySQL binary log support logging Uid's?
I would like to know if it's possible using MySQL Binary Log to record Uid's (usernames) of the users who make modifications to the DB.
This is necessary for the audit purpose.
Is that possible?
2
votes
1answer
1k views
Mysql data recovery using mysqlbinlog
I accidentally dropped a schema without backing it up.
And now I want to use mysqlbinlog utility to perform recovery. (It seems that mysqlbinlog is a good tool). And it needs those binary log files ...
3
votes
3answers
10k views
how to exclude some tables from being binlogged in mysql?
I need to exclude some files from being logged in the binary log to avoid wasting my network bandwidth and time on replication of caching tables.
i know there is
[mysqld]
binlog-ignore-db=...
18
votes
4answers
31k views
Is it safe to delete rotated MySQL binary logs?
I have a MySQL server with binary logging active. Once a day logs file is "rotated", i.e. MySQL seems to stop writing to it and creates and new log file. For example, I currently have these files in /...
33
votes
2answers
46k views
How do i run a query in MYSQL without writing it to the binary log
I want to run an import of a large file into MySQL. However, I don't want it written to the binary log, because the import will take a long time, and cause the slaves to fall far behind. I would ...
1
vote
3answers
403 views
MySQL query based replication
I wish to road-test a MySQL Cluster instance by passing it all query which are executed on InnoDB MySQL instance. I'm not too worried about data integrity on the Cluster at present, this study is ...
10
votes
4answers
2k views
The ultimate MySQL legacy database nightmare
Table1:
Everything including the kitchen sink. Dates in the wrong format (year last so you cannot sort on that column), Numbers stored as VARCHAR, complete addresses in the 'street' column, firstname ...
10
votes
2answers
3k views
MySQL replication for fallback scenario
When I have two mysql servers that have different jobs (holding different databases) but want to be able to use one of them to slip in when the other one fails, what would you suggest how I keep the ...