mysqlbinlog is not running

2009-11-07 Thread Jeetendra Ranjan
Hi, When i run mysqlbinlog to convert binary log file to text file it is giving error which i could not understand. Command [/]# /usr/bin/mysqlbinlog /var/lib/mysql/ip-hostname-bin.27 \ /mysql_backup/a.sql Error /usr/bin/mysqlbinlog: relocation error: /usr/bin/mysqlbinlog: symbol

Re: mysqlbinlog is not running

2009-11-07 Thread Claudio Nanni
Hi, It seems a dynamic link problem, did you install different versions of MySQL? did you compile it? Try to install a statically linked client package. let me know Claudio On Nov 7, 2009 1:29 PM, Jeetendra Ranjan jeetendra.ran...@sampatti.com wrote: Hi, When i run mysqlbinlog to convert

mysqlbinlog

2008-06-03 Thread Krishna Chandra Prajapati
] ~]$mysqlbinlog /var/log/mysql/mysql-bin.14 /*!40019 SET @@session.max_insert_delayed_threads=0*/; /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/; DELIMITER /*!*/; # at 4 #080604 9:18:00 server id 1 end_log_pos 98Start: binlog v 4, server v 5.0.45-log created 080604 9:18:00

RE: mysqlbinlog

2008-06-03 Thread Parikh, Dilip Kumar
Hi Krishna Just do the flush logs and check the last binlogs with the mysqlbinlog xxx-bin textfile. Thanks Regards, Dilipkumar -Original Message- From: Krishna Chandra Prajapati [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2008 11:11 AM To: mysql Subject: mysqlbinlog Hi

Using mysqlbinlog with tables with binary data (blobs)

2007-08-21 Thread Ingvar Hagelund
We have had some cases where we wanted to recover data using the binlogs from some days ago. The database has a lot of binary objects (blobs). The normal way to recover are to restore database files from a consistant point, and then use mysqlbinlog to spool from that point till where we want

mysqlbinlog problem

2006-12-29 Thread spikerlion
Hello, I have hab problem with mysqlbinlog. I'm testing point in time recovery. The Server Version of MySQL is 5.0.22. Statement: ./mysqlbinlog --stop-date=2006-12-29 08:40:00 logfile | mysql -u user -p The error: ERROR at line 12: Unknown command '\C'. By piping the output in a file line 12

Restoring a binary log ( mysqlbinlog )

2006-04-05 Thread Mauricio Pellegrini
binary log files for each day ) For this pourpose we used mysqlbinlog in order to prepare a source file with the transactions to be restored, but as we needed to restore transactions for only one database, we used the option -d win mysqlbinlog like this mysqlbinlog -d hrdb --start-date-time=2006-04

Re: Restoring a binary log ( mysqlbinlog )

2006-04-05 Thread Prasanna Raj
Hi All Correct me if iam wrong You might have run the create table syntax from hrdb database .So it gives you the create table also when you do mysqlbinlog . CREATE TABLE intra.table1 AS SELECT * FROM NO DATABASE NAMEtable2 , which means you are under hrdb database. Else you can use below

Re: Restoring a binary log ( mysqlbinlog )

2006-04-05 Thread Mauricio Pellegrini
Hi, please see comments below.. thank you Mauricio On Wed, 2006-04-05 at 09:02, Prasanna Raj wrote: Hi All Correct me if iam wrong You might have run the create table syntax from hrdb database .So it gives you the create table also when you do mysqlbinlog . CREATE TABLE

Re: Restoring a binary log ( mysqlbinlog )

2006-04-05 Thread Prasanna Raj
It will be written in binary file but when you do mysqlbinlog -d hrdb --start-date-time=2006-04-04 06:00:00 src.sql It wont be loaded in src.sql --Praj On Wed, 05 Apr 2006 09:53:34 -0300 Mauricio Pellegrini [EMAIL PROTECTED] wrote: Hi, please see comments below.. thank you Mauricio

question about mysqlbinlog

2006-01-23 Thread wangxu
I do the follow statement: [EMAIL PROTECTED] mysql]# /usr/bin/mysqlbinlog -h192.168.55.55 -uroot -R --to-last-log /var/lib/mysql/1.01 But the results are: --- /*!40019 SET @@session.max_insert_delayed_threads=0

Re: mysqlbinlog troubles.

2005-04-05 Thread Gleb Paharenko
Hello. What is the output of: # /usr/local/mysql/bin/mysqlbinlog --database=backuptest --start-datetime=2005-03-30 15:00:00 /data/mysql/logs/dbne1-bin.173 seth [EMAIL PROTECTED] wrote: hello, I'm trying to restore a table from a full back up and then a binlog

mysqlbinlog troubles.

2005-04-04 Thread seth
hello, I'm trying to restore a table from a full back up and then a binlog. this is a test table setup specifically for this. I have 34 rows in the full backup, another 5 in the binlog. I find the date of the last insert and use this as the --start-datetime for mysqlbinlog. The problem

Re: Speed of Inserts into MyIsam tables from mysqlbinlog

2005-03-04 Thread Eric Bergen
Since playing back binary logs is just like doing normal queries the tips on this page mostly apply. http://dev.mysql.com/doc/mysql/en/insert-speed.html Depending on your shell scripting level you might have to mysqlbinlog to a file then add in lock statments or whatever you decide to use

Speed of Inserts into MyIsam tables from mysqlbinlog

2005-03-03 Thread Thomas Lekai
I was running a table in InnoDB, and the table had about 6 indexes, none of which seemed to be affected when I ran mysqlbinlog against the tables in order to apply bin-logs from production against a test system. I was manage to process upwards of 2300 queries per second by throwing about 1.8 GB

RE: is there a utility like mysqlbinlog but instead processes the query log?

2005-01-03 Thread Daniel Gaddis
PROTECTED] Sent: Sunday, January 02, 2005 3:58 AM To: mysql@lists.mysql.com mysql@lists.mysql.com Subject: Re: is there a utility like mysqlbinlog but instead processes the query log? On 30 Dec 2004, at 13:26, Daniel Gaddis wrote: is there a utility like mysqlbinlog but instead processes the query

Re: is there a utility like mysqlbinlog but instead processes the query log?

2005-01-02 Thread Andy Davidson
On 30 Dec 2004, at 13:26, Daniel Gaddis wrote: is there a utility like mysqlbinlog but instead processes the query log? I would like to reprocess the queries from the query log. I don't see another reply to this on the list, so I hope it helps - the query log is already in plain-text, so you

is there a utility like mysqlbinlog but instead processes the query log?

2004-12-30 Thread Daniel Gaddis
is there a utility like mysqlbinlog but instead processes the query log? I would like to reprocess the queries from the query log. Thanks, Daniel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

is there a utility like mysqlbinlog but instead processes the query log?

2004-12-28 Thread Daniel Gaddis
is there a utility like mysqlbinlog but instead processes the query log? I would like to reprocess the queries from the query log. additional features that would be nice would include: listing unique queries the number of times each unique query is executed Thanks, Daniel -- MySQL

Patch for mysqlbinlog

2004-03-19 Thread Sasha Pachev
Hello, everyone: I recently had to recover some deleted data that was important enough to dig through the binlogs for and fish it out. To make my job easier, I fixed up mysqlbinlog to do a couple of extra tricks: * show only entries in a given timestamp range * exclude queries containing

Re: mysqlbinlog: unknown command errors

2004-03-05 Thread Mark Maggelet
, mysqlbinlog has a few other issues and in a general case will not produce a reliable query playback. If you have binlog on a remote server you want played back, a better way to do it is to set up your server as a replication slave to the one containing the binlog, and point it to the start

Re: mysqlbinlog: unknown command errors

2004-03-04 Thread Sasha Pachev
command line client that needs to be reported. However, mysqlbinlog has a few other issues and in a general case will not produce a reliable query playback. If you have binlog on a remote server you want played back, a better way to do it is to set up your server as a replication slave to the one

Re: mysqlbinlog: unknown command errors

2004-03-03 Thread Mark Maggelet
Since I didn't get an answer to this, I'll try asking it another way: has anybody gotten a binlog with binary data (images) to load from one server to another? And if so, what version are you using? Thanks, - Mark On Mon, 1 Mar 2004 21:09:22 -0800, Mark Maggelet wrote: Hi, I'm having problems

mysqlbinlog: unknown command errors

2004-03-01 Thread Mark Maggelet
Hi, I'm having problems running queries in my binlog that contain binary data. Apparently the / character is being interpreted as a mysql command and I get errors. The queries must have gone through on the original machine because they're there in the binlog. Specs are: original server: mysqld

Re: mysqlbinlog question

2003-08-25 Thread Victoria Reznichenko
www.mysql.com) on Redhat 9. When I issue the command mysqlbinlog it does not show me the whole binary logfile but just the first line or so (below). mysqlbinlog baby-bumble-bee-bin.09 # at 4 #030814 14:38:17 server id 1 Start: binlog v 4, server v created 700101

mysqlbinlog question

2003-08-21 Thread Nils Valentin
Hi MySQL Fans ;-), This time I am using 4.0.13-max (tar format from www.mysql.com) on Redhat 9. When I issue the command mysqlbinlog it does not show me the whole binary logfile but just the first line or so (below). mysqlbinlog baby-bumble-bee-bin.09 # at 4 #030814 14:38:17 server id 1

Re: mysqlbinlog question

2003-08-21 Thread Victoria Reznichenko
Nils Valentin [EMAIL PROTECTED] wrote: This time I am using 4.0.13-max (tar format from www.mysql.com) on Redhat 9. When I issue the command mysqlbinlog it does not show me the whole binary logfile but just the first line or so (below). mysqlbinlog baby-bumble-bee-bin.09 # at 4

Re: mysqlbinlog question

2003-08-21 Thread Nils Valentin
Hi Victoria, 2003 8 21 16:09Victoria Reznichenko : Nils Valentin [EMAIL PROTECTED] wrote: This time I am using 4.0.13-max (tar format from www.mysql.com) on Redhat 9. When I issue the command mysqlbinlog it does not show me the whole binary logfile but just the first line or so

Re: mysqlbinlog question

2003-08-21 Thread Victoria Reznichenko
Nils Valentin [EMAIL PROTECTED] wrote: 2003? 8? 21? ??? 16:09?Victoria Reznichenko : Nils Valentin [EMAIL PROTECTED] wrote: This time I am using 4.0.13-max (tar format from www.mysql.com) on Redhat 9. When I issue the command mysqlbinlog it does not show me the whole binary

Re: mysqlbinlog question

2003-08-21 Thread Nils Valentin
the command mysqlbinlog it does not show me the whole binary logfile but just the first line or so (below). mysqlbinlog baby-bumble-bee-bin.09 # at 4 #030814 14:38:17 server id 1 Start: binlog v 4, server v created 700101 9:00:00 I understood that I can use the tool

Re: mysqlbinlog wrong output

2003-08-20 Thread Egor Egorov
Jan Josefowicz [EMAIL PROTECTED] wrote: This version of mysqlbinlog can work properly only with 3.23 server binary logs. is there a mysqlbinlog version that matches to MySQL 4.0.xx? Version 2.3 -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email

Re: mysqlbinlog wrong output

2003-08-19 Thread Jan Josefowicz
Does the version of mysqlbinlog match that of the server that wrote the binlog? I'm using MySQL 4.0.14 [linux] mysqlbinlog version 1.6 [linux] Regards Jan Josefowicz -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL

Re: mysqlbinlog wrong output

2003-08-19 Thread Egor Egorov
Jan Josefowicz [EMAIL PROTECTED] wrote: Does the version of mysqlbinlog match that of the server that wrote the binlog? I'm using MySQL 4.0.14 [linux] mysqlbinlog version 1.6 [linux] This version of mysqlbinlog can work properly only with 3.23 server binary logs. -- For technical

Re: mysqlbinlog wrong output

2003-08-19 Thread Jan Josefowicz
Hi, This version of mysqlbinlog can work properly only with 3.23 server binary logs. is there a mysqlbinlog version that matches to MySQL 4.0.xx? Regards Jan Josefowicz -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL

mysqlbinlog wrong output

2003-08-18 Thread Jan Josefowicz
Hi all, I get following output from mysqlbinlog mylog-bin-file.001: # at 4 #030818 13:38:00 server id 1 Start: binlog v 4, server v created 700101 1:00:00 The file mylog-bin-file.001 contains many queries but they don't appear in the output from mysqlbinlog. What is wrong? Thanks

Re: mysqlbinlog wrong output

2003-08-18 Thread Jeremy Zawodny
On Mon, Aug 18, 2003 at 10:30:31PM +0200, Jan Josefowicz wrote: Hi all, I get following output from mysqlbinlog mylog-bin-file.001: # at 4 #030818 13:38:00 server id 1 Start: binlog v 4, server v created 700101 1:00:00 The file mylog-bin-file.001 contains many queries

RE: mysqlbinlog suggestion

2003-07-21 Thread Luc Foisy
I suppose datetime would be the better option here -Original Message- From: Victoria Reznichenko [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 10:00 AM To: [EMAIL PROTECTED] Subject: Re: mysqlbinlog suggestion Luc Foisy [EMAIL PROTECTED] wrote: allowing date range options

Re: mysqlbinlog suggestion

2003-07-18 Thread Victoria Reznichenko
Luc Foisy [EMAIL PROTECTED] wrote: allowing date range options to the command line would be really neat Date or datetime option? -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___

mysqlbinlog suggestion

2003-07-10 Thread Luc Foisy
allowing date range options to the command line would be really neat Luc -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

mysqlbinlog and bad queries

2003-03-21 Thread Mark
Hi, mysql seems to log bad queries, is there any way to keep this from happening? thanks, - Mark - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list

Re: mysqlbinlog and bad queries

2003-03-21 Thread Paul DuBois
At 9:33 -0800 3/21/03, Mark wrote: Hi, mysql seems to log bad queries, is there any way to keep this from happening? thanks, - Mark That's impossible. Queries are written to the binary log only after they execute. (Queries are logged to the general log before they execute, but your message

mysqlbinlog: Error writing file 'UNOPENED' (Errcode: 29)

2003-02-26 Thread Mark
does anybody know what this means? My binlogs are full of them. thanks, - Mark sql - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To

RE: Using mysqlbinlog to restore blob data

2003-02-20 Thread Rick Arthur
in a blob column. If I restore the database from the dump (no problem here) and then try mysqlbinlog logfile-bin.xxx | mysql -uuser -psomepass I will get sql syntax errors for the INSERT of the blob column. But not if the attachment was a text file, only things like a *.bmp, or *.mp3. Have

Using mysqlbinlog to restore blob data

2003-02-19 Thread Rick Arthur
Hi, I want to be able to use the MySQL binary logs and mysqlbinlog to restore data if needed. This works fine, except when the log contains sql that is written when I save a binary stream to a BLOB column in a table. I will get one of those messages like 'there is an error in your SQL

RE: Using mysqlbinlog to restore blob data

2003-02-19 Thread Steven Roussey
Rick, I am able to restore from logs that had binary data (even though the output looked real strange and messed up the terminal window). I did have a problem once when I tried filtering data between mysqlbinlog and mysql. Be careful if you do that. What version of mysql are you using? I have

mysqlbinlog segfaults with host args

2002-12-20 Thread Nicolas MONNET (Tech)
$ mysqlbinlog --host=mysqlserver --table=sometable --database=somedb \ --user=someuser --password=somepassword Segmentation fault. $ strace mysqlbinlog --host=mysqlserver --table=sometable \ --database=somedb \ --user=someuser --password=somepassword (...) old_mmap(NULL, 1203040, PROT_READ

Re: mysqlbinlog - doesn't work on some log files

2002-08-19 Thread Eric Frazier
Hi, I tried using the mysqlbinlog from 3.23.52 MAX with no difference in the output at all from 4.0.2 It seems that whatever happened truely caused the log files to become corrupted So my next question would be, is there a way to repair the log files? What are the formating rules for the log

Re: mysqlbinlog - doesn't work on some log files

2002-08-17 Thread Heikki Tuuri
Eric, try using the mysqlbinlog program from some other version, maybe 4.0.0, or 3.23.xx. I noticed a similar bug a while ago. mysqlbinlog seg faulted on a binlog file. I am forwarding this bug report to our replication expert. Best regards, Heikki ... Hi, I deleted a db I

mysqlbinlog - doesn't work on some log files

2002-08-16 Thread Eric Frazier
Hi, I deleted a db I didn't mean to. I am using mysql 4.0.1 Alpha and some innodb and some myisam tables. I have the log files I need to restore my data since I have been running since the last backup with binlog enabled in my.cnf. The problem is that mysqlbinlog shows some log files

Re: Help restoring data with mysqlbinlog

2002-04-12 Thread Victoria Reznichenko
balteo, Monday, April 08, 2002, 7:53:01 PM, you wrote: b Victoria, b Thanks for replying. How does one know what parameter to pass on as b position, in other words how do I know from what point to start the b roll-forward from the binlog? What's more what format is this parameter? b

Re: Help restoring data with mysqlbinlog

2002-04-08 Thread Victoria Reznichenko
balteo, Sunday, April 07, 2002, 3:50:05 PM, you wrote: b I am trying to restore some data from the binary log and I am not sure on b how to proceed. b I understand restoring data is a two-stage process: b 1. You start by restoring data saved with mysqldump. b 2. Using mysqlbinlog, you restore

Help restoring data with mysqlbinlog

2002-04-08 Thread balteo
Victoria, Thanks for replying. How does one know what parameter to pass on as position, in other words how do I know from what point to start the roll-forward from the binlog? What's more what format is this parameter? (timestamp, integer??) Thanks, Balteo. P.S. I tried mysqlbinlog --help

Help restoring data with mysqlbinlog

2002-04-07 Thread balteo
Hello all, I am trying to restore some data from the binary log and I am not sure on how to proceed. I understand restoring data is a two-stage process: 1. You start by restoring data saved with mysqldump. 2. Using mysqlbinlog, you restore the data logged in the binary log from the point where

Re: mysqlbinlog: Duplicate entry '1' for key 1

2002-04-07 Thread Dicky Wahyu Purnomo
the data saved with mysqldump 2. You restore the data logged in the binary log using mysqlbinlog I am having the above problem at the second stage and what's more, I don't understand how mysql is supposed to know from what point to start the restore from. The error means that a query from

mysqlbinlog: Duplicate entry '1' for key 1

2002-04-06 Thread Balteo
using mysqlbinlog I am having the above problem at the second stage and what's more, I don't understand how mysql is supposed to know from what point to start the restore from. Thanks in advance, Balteo. - Before posting

More info on mysqlbinlog strangeness

2001-12-06 Thread Wendell Dingus
I've been using mysqlbinlog to capture a file of inserts/updates/deletes on numerous servers since the early 3.23.x days. I have 3.23.46-max on a pair of servers now though where it is exhibiting some strange behavior. Based on some emailed suggestions I've tried leaving off the -uroot -ppassword

mysqlbinlog hangs

2001-12-05 Thread Wendell Dingus
Version 3.23.46-max on a dual Xeon RedHat 7.2 machine with all RedHat patches and their latest -smp kernel. I turned on binary logging on a particular database with binlog-do-db= and later try this: mysqlbinlog -uroot -pxxxyyy binlogfilename-bin.001 It shows me the inserts and deletes

Re: mysqlbinlog

2001-10-31 Thread Jeremy Zawodny
On Mon, Oct 29, 2001 at 04:59:45PM +0700, mahfud wrote: Hi, I have mysql - bin -log, but when i read this I can't find IP number from client who made connection to my server. How i find IP number in mysql - bin -log ? You cannot. It isn't stored in the binary log. Jeremy -- Jeremy D.

Re: mysqlbinlog

2001-10-31 Thread mahfud
Where can I find, if only mysqlbinlog on. Jeremy Zawodny wrote: On Mon, Oct 29, 2001 at 04:59:45PM +0700, mahfud wrote: Hi, I have mysql - bin -log, but when i read this I can't find IP number from client who made connection to my server. How i find IP number in mysql - bin -log

mysqlbinlog

2001-10-29 Thread mahfud
Hi, I have mysql - bin -log, but when i read this I can't find IP number from client who made connection to my server. How i find IP number in mysql - bin -log ? thanks - Before posting, please check:

3.23.43 build fails on mysqlbinlog under HPUX 10.20

2001-10-29 Thread Michael Stassen
Description: Though not mentioned in the Change log, it appears that mysqlbinlog was moved from sql/ to client/ sometime between 3.23.41 and 3.23.43. As a result, make fails under HPUX 10.20 with /bin/sh ../libtool --mode=link gcc -O3 -DDBUG_OFF -DHPUX -I/opt/dce/include -felide-constructors

mysqlbinlog

2001-08-09 Thread Michael T. Babcock
I would like to dump all sql transactions from a binary transaction log for a specific table after a specific timestamp. I can run mysqlbinlog and delete all the queries up to the point of the correct timestamp, then try to filter out the lines for other databases and tables, but a more

Re: mysqlbinlog

2001-08-09 Thread Shon Stephens
perl script At 08:50 AM 8/9/01 -0400, Michael T. Babcock wrote: I would like to dump all sql transactions from a binary transaction log for a specific table after a specific timestamp. I can run mysqlbinlog and delete all the queries up to the point of the correct timestamp, then try to filter

Re: mysqlbinlog

2001-08-09 Thread Michael T. Babcock
So how can I log all the queries. Can I define a log (not binary log) file in my.cnf using for instance log=filename in the mysqld section ? Do I have to disable log-binary to use normal log ? This is my startup: /usr/bin/safe_mysqld \ --log=/var/log/mysql/query_log

make fails while trying to link mysqlbinlog

2001-07-23 Thread eltorres
/zlib-1.1.3 -L/auto/oieda2/oicad/mySQL/build/zlib-1.1.3 -fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -o mysqlbinlog mysqlbinlog.o mini_client.o net_serv.o mini_client_errors.o violite.o password.o ../isam/libnisam.a ../merge/libmerge.a

mysqlbinlog

2001-03-27 Thread Mat Murdock
I've looked through the manual and about 9000 posts from multiple mailing lists.. Is there a way to have mysqlbinlog take a log file and dump just the sql statements to a file? Am I using the wrong program to do that? Any help would be most appreciated. Mat

Re: mysqlbinlog

2001-03-27 Thread Scott Baker
Just use mysqldump! At 03:59 PM 3/27/2001 -0700, Mat Murdock wrote: I've looked through the manual and about 9000 posts from multiple mailing lists.. Is there a way to have mysqlbinlog take a log file and dump just the sql statements to a file? Am I using the wrong program to do

Re: Adding the offset to mysqlbinlog

2001-02-06 Thread Sinisa Milivojevic
+ ev-print(stdout, short_form); +} rec_count++; delete ev; } Submitter-Id: submitter ID Originator: Matthias Urlichs Organization: MySQL support: licence Synopsis: mysqlbinlog doesn't print the offset Severity: non-critical Priority:

Adding the offset to mysqlbinlog

2001-02-06 Thread Michael Widenius
Description: Sometimes, when you get a resync error, you need to skip a particular update and restart with the next bit. How-To-Repeat: Insert conflicting records and try to re-sync without deleting one. Fix: Apply this patch. Index: noris.38/sql/mysqlbinlog.cc

Adding the offset to mysqlbinlog

2001-02-05 Thread smurf
ev; } Submitter-Id: submitter ID Originator:Matthias Urlichs Organization: MySQL support: licence Synopsis: mysqlbinlog doesn't print the offset Severity: non-critical Priority: medium Category: mysql Class: change-request Release: mysql-3.23.32