How to get sane error log behavior

2007-10-08 Thread Baron Schwartz
I had a server crash over the weekend and discovered that I don't know as much about MySQL error logging as I thought. The error logs were empty because of FLUSH LOGS. What I learned today is if I specify the log-errors parameter in /etc/mysql/my.cnf, every time there's a FLUSH LOGS

Problem with repeated replication corruption - Could not parse relay log event entry

2007-10-08 Thread Frank Bottone
alert that the slave had stopped again. This time, it seems like the relay log is definitely corrupt. I was able to run mysqlbinlog /dev/null on all the master logs, none are corrupt (including the one it had read up to on the slave). The relay log on the slave is though - it reports [EMAIL

Re: Problem with repeated replication corruption - Could not parse relay log event entry

2007-10-08 Thread Baron Schwartz
, today I was greeted with a nagios alert that the slave had stopped again. This time, it seems like the relay log is definitely corrupt. I was able to run mysqlbinlog /dev/null on all the master logs, none are corrupt (including the one it had read up to on the slave). The relay log on the slave

Re: Problem with repeated replication corruption - Could not parse relay log event entry

2007-10-08 Thread Frank Bottone
. This time, it seems like the relay log is definitely corrupt. I was able to run mysqlbinlog /dev/null on all the master logs, none are corrupt (including the one it had read up to on the slave). The relay log on the slave is though - it reports [EMAIL PROTECTED] mysql]# mysqlbinlog mysql02-relay

RE: Problem with repeated replication corruption - Could not parse relay log event entry

2007-10-08 Thread Dan Rogart
. Ultimately we had to perform a RESET SLAVE (back up those relay logs first, just in case) and reset the master log position (see Baron's CHANGE MASTER TO statements below) to the point where it failed. We also increased the max allowed packet size on both the master and the slave, as it seemed like

Re: Slave Bin Log Question

2007-09-25 Thread Ananda Kumar
Hemphill wrote: I have executed a strategy for backup where I stop a slave and do a mysqldump with --master-data. Both master and slave are 4.1.20 My assumption was that the log coordinates in the dump file would provide me with the place to replay the log for a point in time recovery

Mysql server general query log

2007-09-24 Thread Ashok Chauhan
Hi List, Anybody knows a tool for viewing mysql server general query log in linux. Thanks Ashok -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Slave Bin Log Question

2007-09-24 Thread Eric Frazier
Boyd Hemphill wrote: I have executed a strategy for backup where I stop a slave and do a mysqldump with --master-data. Both master and slave are 4.1.20 My assumption was that the log coordinates in the dump file would provide me with the place to replay the log for a point in time recovery

Slave Bin Log Question

2007-09-22 Thread Boyd Hemphill
I have executed a strategy for backup where I stop a slave and do a mysqldump with --master-data. Both master and slave are 4.1.20 My assumption was that the log coordinates in the dump file would provide me with the place to replay the log for a point in time recovery. What I learned today

log files and upgrading

2007-09-20 Thread Malka Cymbalista
Is it possible to log information to the general log file only for a specific database? We are currently running MySQL 4.0.15. We are planning on moving to a new server so and will upgrade MySQL. What is the latest most stable version that is recommended? Thanks for any information

Re: log files and upgrading

2007-09-20 Thread Michael Dykman
I don't think there is any way to lock down the general log to a single database.. perhaps if you tell us what you are trying to accomplish, we might be able to propose something.. As of today, 5.0.45 is the recommended install version. http://dev.mysql.com/downloads/mysql/5.0.html

possible bug: general logging not working with 5.1.20-beta-log

2007-08-16 Thread Paul Maunders
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, We have general logging enabled on our mysql server via a my.cnf setting. The log records an entry when the server restarts, but does not record any queries. Is this a bug? or have I missed something. In my.cnf [mysqld] log=query.log Contents

Binary Log Incremental / Full Backups

2007-08-08 Thread George Cooke
, causing binlog index to be reset, ALL logs deleted and new log file created, thats ok, we have a full backup) 4. Unlock the database [/Full backup script] [Incremental backup script actions] 1. Flush logs 2. backup all logs except the last one via compress and transfer 3. purge all

purge slow query log

2007-08-07 Thread Boyd Hemphill
I would like to empty the slow query log without restarting MySQL. If I simply delete lines, the server will no longer write to the file. I have tried leaving the header, but still no writes unless I restart MySQL. I am on RHEL4. The group and owner of the file are correct: 4 -rw-rw

Re: purge slow query log

2007-08-07 Thread Sean Pringle
On 8/7/07, Boyd Hemphill [EMAIL PROTECTED] wrote: I would like to empty the slow query log without restarting MySQL. If I simply delete lines, the server will no longer write to the file. I have tried leaving the header, but still no writes unless I restart MySQL. I am on RHEL4. The group

Re: Log Files

2007-07-30 Thread Christian High
set these options in the option file under the [mysqld] section log-slow-queries= log= log= is the general query log i am not sure what you mean by the mysql log. if you mean the error log than that would be log-error= if you mean the binary log that would be log-bin= if you don't enter

Re: Log Files

2007-07-30 Thread Christian High
of course you'll need to restart the server after making the changes to the options file.. On 7/30/07, Christian High [EMAIL PROTECTED] wrote: set these options in the option file under the [mysqld] section log-slow-queries= log= log= is the general query log i am not sure what

Log Files

2007-07-29 Thread krishna chandra prajapati
Hi All, Please tell my how to activate the general log, mysql log and slow query log. Regards, Krishna

Re: Replication broken - fatal error 1236: 'error reading log entry'

2007-07-19 Thread Ofer Inbar
On Wed, Jul 18, 2007 at 06:13:10PM -0400, I wrote: This afternoon, both slaves stopped at the same place, with the same error: 070718 17:28:00 [ERROR] Error reading packet from server: error reading log entry ( server_errno=1236) 070718 17:28:00 [ERROR] Got fatal error 1236: 'error reading

Replication broken - fatal error 1236: 'error reading log entry'

2007-07-18 Thread Ofer Inbar
MySQL 5.0.27 from RPM, on Redhat EL4. One master, two slaves, one database. Slaves have been up for 5 days. This afternoon, both slaves stopped at the same place, with the same error: 070718 17:28:00 [Note] Slave SQL thread initialized, starting replication in log 'hlgbinlog-oil.15

Re: bin-log position.

2007-07-08 Thread Ananda Kumar
Hi Alex, Thank you for the response, But i took the dump from slave and slave was in sync with master, so should i still be doing the restore from bin-log 3 from position 311. regards anandkl On 7/8/07, Alex Arul Lurthu [EMAIL PROTECTED] wrote: On 7/6/07, Ananda Kumar [EMAIL PROTECTED

Re: bin-log position.

2007-07-08 Thread Alex Arul Lurthu
. The master log file will be mysql-bin.29 . But your show slave output status doesnt show the exe_master_log position. You need to use that position for setting up a new slave of your master. 2. Setup a slave of your slave To do this use the binglog positions in your mysqldump output. P.S: Make

Re: bin-log position.

2007-07-08 Thread Ananda Kumar
that were dumped out are that of the slave. Now you might do 2 things : 1. Setup a slave of your master To do this use the binlog positions that you obtained using the command show slave status on your slave. The master log file will be mysql-bin.29 . But your show slave output status

Re: bin-log position.

2007-07-08 Thread Alex Arul Lurthu
status on your slave. The master log file will be mysql-bin.29 . But your show slave output status doesnt show the exe_master_log position. You need to use that position for setting up a new slave of your master. 2. Setup a slave of your slave To do this use the binglog positions

Re: bin-log position.

2007-07-08 Thread Ananda Kumar
positions that were dumped out are that of the slave. Now you might do 2 things : 1. Setup a slave of your master To do this use the binlog positions that you obtained using the command show slave status on your slave. The master log file will be mysql-bin.29 . But your show

Re: bin-log position.

2007-07-07 Thread Alex Arul Lurthu
On 7/6/07, Ananda Kumar [EMAIL PROTECTED] wrote: -- CHANGE MASTER TO MASTER_LOG_FILE='mysql-bin.03', MASTER_LOG_POS=311; As see in the mysqldump is saying to start recovery from bin-log file ' mysql-bin.03' and position=MASTER_LOG_POS=311, You need to use the positions specified

bin-log position.

2007-07-06 Thread Ananda Kumar
, it showing as -- CHANGE MASTER TO MASTER_LOG_FILE='mysql-bin.03', MASTER_LOG_POS=311; But before i started the mysqldump, I did the below on slave db. show slave status\G Master_Log_File: mysql-bin.29 Read_Master_Log_Pos: 106683511 Relay_Log_File: relay-log.039071 Relay_Log_Pos: 106683648

Multiple binary log files question

2007-07-03 Thread Clyde Lewis - DBA
Guys, I would like to know if there is a way to have individual databases under the same instance or server write to separate binary log files. The idea is to have multiple binary log file for each database on the same server. The problem that I experiencing is sorting through the binary

Strange Garbage Characters ending up in Slave Relay Log !!!

2007-07-01 Thread Kishore Jalleda
Hi All, We are having a very strange problem with two of our slave servers, here is what is happening mysql select version(); 5.0.30-Debian_1~bpo.1-log 1) we backup our slave every night, and when we do that we stop the slave, and start a remote mysqldump from the backup machine.. 2

Re: General Query Log -- No Timestamp

2007-06-29 Thread Alex Greg
On 6/26/07, Brown, Charles [EMAIL PROTECTED] wrote: The MYSQL general query log does not include timestamp of queries that it logs because queries are logged many many seconds before they are executed. Which version of MySQL are you running? I'm running 5.0.22 on my desktop, but I'm fairly

General Query Log -- No Timestamp

2007-06-26 Thread Brown, Charles
The MYSQL general query log does not include timestamp of queries that it logs because queries are logged many many seconds before they are executed. Can someone help me associated queries found in the query log with wall clock? I am trying to get a list of queries that were executed within

Re: Reapply bin-log question( Help Please)

2007-06-20 Thread Clyde Lewis - DBA
Thanks a bunch for the suggested workaround. This method was exactly what I was looking for. Thanks again. CL At 01:33 AM 6/20/2007, Ananda Kumar wrote: One possible way is to spool the contents of bin-log into a file. mysqlbinlog oca-bin.000554 binlog_sql.sql. This will give you all

Reapply bin-log question( Help Please)

2007-06-19 Thread Clyde Lewis - DBA
Guys, I'm attempting to reapply a number of bin-log files in a effort to restore all changes that was made to a database. I'm performing the following command, but continue to get a foreign key constraint error message when doing so. Has anyone ever ran into this issue, and if so, what

Re: Reapply bin-log question( Help Please)

2007-06-19 Thread Ananda Kumar
One possible way is to spool the contents of bin-log into a file. mysqlbinlog oca-bin.000554 binlog_sql.sql. This will give you all the data present in oca-bin.000554. Then you can set the foreign key check to 0 at the session level and then apply the binlog_sql.sql. Comment our everything

Re: spool data/log into a file.

2007-04-30 Thread Joerg Bruehe
Hi Michale, all [EMAIL PROTECTED] wrote: most likely you just need to redirect STDERR to tee as well so it's not a mysql problem: mysql -u -p -f eof 21 | tee ttt.txt ... assuming it's Bourne or ksh, don't remember what's csh for 21 It is an appended '': prog file

Re: problem restoring from binary log

2007-04-27 Thread Mathieu Bruneau
with --flush-logs --master-data=2 - do a bunch of stuff that writes data - drop the database, and recreate it, flushing the log - make a copy of the binary log made since the mysqldump - import the mysqldump I made locally = now I have all data correctly restored up to that point Now, I attempt

Re: problem restoring from binary log

2007-04-27 Thread Ofer Inbar
data - drop the database, and recreate it, flushing the log - make a copy of the binary log made since the mysqldump - import the mysqldump I made locally = now I have all data correctly restored up to that point Now, I attempt to restore the binary log and this happens

Re: problem restoring from binary log

2007-04-27 Thread Mathieu Bruneau
of stuff that writes data - drop the database, and recreate it, flushing the log - make a copy of the binary log made since the mysqldump - import the mysqldump I made locally = now I have all data correctly restored up to that point Now, I attempt to restore the binary log and this happens

spool data/log into a file.

2007-04-26 Thread Ananda Kumar
Hi All, I have written a script to connect to mysql and all the command results is spooled into a file. But when an error occurs in mysql, it stops at that point and does not proceed to the next command, also these error command is not written to the output file. Can you please tell me what i

Re: spool data/log into a file.

2007-04-26 Thread mizioumt
: Thu, 26 Apr 2007 8:15 AM Subject: spool data/log into a file. Hi All, I have written a script to connect to mysql and all the command results is spooled into a file. But when an error occurs in mysql, it stops at that point and does not proceed to the next command, also these error command

Re: InnoDB data log files

2007-04-25 Thread Andrew Simpson
engine. [...] The errors are due to InnoDB being disabled. As far as I can tell, this has happened as the InnoDB log file ib_logfile0 is the wrong size. This took me to the description for adding and removing log files at: http://dev.mysql.com/doc/refman/5.0/en/adding-and-removing.html

problem restoring from binary log

2007-04-25 Thread Ofer Inbar
of stuff that writes data - drop the database, and recreate it, flushing the log - make a copy of the binary log made since the mysqldump - import the mysqldump I made locally = now I have all data correctly restored up to that point Now, I attempt to restore the binary log and this happens

Event Log Error

2007-04-23 Thread Jesse
I'm running MySQL version 5.0.22-community-nt on a Windows 2003 server. I a noticing A LOT of errors in there like the following: C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt: Incorrect information in file: '.\nfcamp\societies.frm' This spans multiple databases and tables. I am

InnoDB data log files

2007-04-12 Thread Andrew Simpson
. The server is running Windows Server 2003 and MySQL version 5.0.24a-community-nt installed using the xampp package. The relevant sections of the MySQL log file are below, after which it went into a near endless cycle of 'Incorrect information in file:' errors. The errors are due to InnoDB

Re: InnoDB data log files

2007-04-12 Thread Dan Nelson
, InnoDB has been disabled, which left the data inaccessible. The database was restored using the most recent backup, but all tables are now using the MyISAM engine. [...] The errors are due to InnoDB being disabled. As far as I can tell, this has happened as the InnoDB log file ib_logfile0

log table advice

2007-02-06 Thread Yong Lee
Hi all, Just wondering how people are dealing with tables that are used for logging, ie: insert only tables supporting occasional queries used for audit or event logs. These tables will keep growing and there is no need to keep them that large so what is the best strategy in managing the data

Re: log table advice

2007-02-06 Thread Fagyal Csongor
Hi all, Just wondering how people are dealing with tables that are used for logging, ie: insert only tables supporting occasional queries used for audit or event logs. These tables will keep growing and there is no need to keep them that large so what is the best strategy in managing the

Re: log table advice

2007-02-06 Thread Jake Peavy
On 2/6/07, Yong Lee [EMAIL PROTECTED] wrote: Hi all, Just wondering how people are dealing with tables that are used for logging, ie: insert only tables supporting occasional queries used for audit or event logs. These tables will keep growing and there is no need to keep them that large

How to log on the server refused connections?

2007-01-26 Thread Nico Sabbi
Hi, I'm experiencing some sporadic connection refused from mysql-max server. I'd like to keep track of these events, so is there a way to log on the server these 3 items? - date and time - ip of the client - reason of the refusal Thanks, Nico -- Email.it, the professional e-mail, gratis

tool to parse general log (3.23.55)

2007-01-25 Thread Sid Lane
all, I have been tasked with upgrading a critical 3.23.55 database to 5.0(.27-ish). short version is it's never been upgraded because authors have moved on and nobody's sure of everything that uses it. I enabled the general log a few days ago and have a good body of data with which to go code

Re: tool to parse general log (3.23.55)

2007-01-25 Thread Jake Peavy
On 1/25/07, Sid Lane [EMAIL PROTECTED] wrote: all, I have been tasked with upgrading a critical 3.23.55 database to 5.0 (.27-ish). short version is it's never been upgraded because authors have moved on and nobody's sure of everything that uses it. I enabled the general log a few days ago

MySQL5 becomes so slowly when bin log is open

2007-01-24 Thread gulei
MySQL5 becomes so slowly when bin log is open. I used sysbench to test mysql. MySQL version is mysql-standard-5.0.27-linux-i686-icc-glibc23.tar.gz OS is RHEL 4.0 my.cnf is : [mysqld] #log-bin=icc max_connections=3000 innodb_log_file_size=50M max_prepared_stmt_count=32765 #log=Buddha.log

RE: Log Warnings Level

2007-01-19 Thread Kristen G. Thorson
-Original Message- From: Colin Charles [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 17, 2007 9:08 PM To: Kristen G. Thorson Cc: mysql@lists.mysql.com Subject: Re: Log Warnings Level Kristen G. Thorson wrote: Hi! But all I really get from this reading is 0 turns it off

Re: Log Warnings Level

2007-01-19 Thread Colin Charles
the documentation there is on this? What kind of additional information are you looking about the --W (or --log-warnings=N) option? Thank you for the response. I was looking for information on how high the level can go - 2? 5? 200? - and what types of warnings are logged for a given level? AFAIK

Re: Log Warnings Level

2007-01-17 Thread Colin Charles
the documentation there is on this? What kind of additional information are you looking about the --W (or --log-warnings=N) option? I'd pay attention to aborted connections, as MySQL Network's monitoring service actually does do so kind regards -- Colin Charles, Community Engineer MySQL AB

Log Warnings Level

2007-01-10 Thread Kristen G. Thorson
The manual indicates that you can specify a specific level to control what types of warnings are logged: http://dev.mysql.com/doc/refman/5.0/en/server-options.html (See section on log-warnings.) But all I really get from this reading is 0 turns it off, 1 prints some warnings, and 2 prints level

Extracting transactional data from InnoDB log files

2007-01-09 Thread Jason J. W. Williams
Hello, Is it possible to extract transactional data from InnoDB log files? InnoDB kept crashing and trying to insert the same record (replayed from the log after the crash I assume). I'd like to try and extract the record from log to reconstruct the query and try to break it again in case

Re: no log generated?

2006-12-20 Thread Bing Du
format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1 [mysql.server] user=mysql basedir=/var/lib [mysqld_safe] err-log=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid == But /var/log/mysqld.log doesn't have

no log generated?

2006-12-19 Thread Bing Du
(those using the mysqlclient10 compatibility package). old_passwords=1 [mysql.server] user=mysql basedir=/var/lib [mysqld_safe] err-log=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid == But /var/log/mysqld.log doesn't have anything more recent than October 2006. Yesterday, the mysqld

Re: no log generated?

2006-12-19 Thread Daniel da Veiga
for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1 [mysql.server] user=mysql basedir=/var/lib [mysqld_safe] err-log=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid == But /var/log/mysqld.log doesn't have anything more recent

Re: Innodb log sequence error - urgent

2006-12-16 Thread Heikki Tuuri
Ratheesh, if the database otherwise looks ok (no crashes, no corrupt tables), then the easiest way to fix the wrong log sequence number (lsn) is to artificially inflate the log sequence number. If your log sequence number is 4 GB too small, then inserting and deleting 4 GB worth of rows

Re: Innodb log sequence error - urgent

2006-12-11 Thread Ratheesh K J
Thanks, I have the previous ib_log* files on the app server. And every thing on the cnf file was perfect. Only the ib_log file's size was a mismatch. Whats the best work around? Can I copy the log files of the App server to the DB server and change the innodb_log_file_size to 256M

Innodb log sequence error - urgent

2006-12-10 Thread Ratheesh K J
from the app server). But when Mysql was installed the ib_logfile0 ib_logfile1 and ib_logfile2 were created freshly on the DB serever. Each of these log files were created with 5M size. on the app server these files were 256M in size (innodb_log_file_size = 256M). On the DB server

Re: Innodb log sequence error - urgent

2006-12-10 Thread Jan Kirchhoff
(which were copied from the app server). But when Mysql was installed the ib_logfile0 ib_logfile1 and ib_logfile2 were created freshly on the DB serever. Each of these log files were created with 5M size. on the app server these files were 256M in size (innodb_log_file_size = 256M). On the DB

Logging aborted_connects to error log instead of gen. log

2006-11-29 Thread Amit Dor-Shifer
password. * If these kinds of things happen, it might indicate that someone is trying to break into your server! I see that this event is written to the general log. Is there a way to log such an event to the error log? Amit -- MySQL General Mailing List For list

Using MySQL to log and report transactions

2006-11-10 Thread James Tu
Hi: I'm going use MySQL to log transactions so that I can report on them later. Ex: CREATE TABLE statistics ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT , user_id BIGINT UNSIGNED , entity_id INT UNSIGNED , transaction_type INTEGER(2) UNSIGNED , datetime_logged

Re: Using MySQL to log and report transactions

2006-11-10 Thread Dan Nelson
In the last episode (Nov 10), James Tu said: I'm going use MySQL to log transactions so that I can report on them later. Ex: CREATE TABLE statistics ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT , user_id BIGINT UNSIGNED , entity_id INT UNSIGNED , transaction_type

Automatically Log Splitting.

2006-11-03 Thread Sayed Hadi Rastgou Haghi
Dear all, I know that there is a MERGE engine in mysql. It's great. I want to know is there a way to make new log tables and new merge table based on some criteria. Let me explain more with an example. I have a log_2004_09_01 table and a MERGE table on it called log. I want to automatically make

Re: bin-log with expire_logs_days

2006-10-19 Thread Visolve DB Team
Hi, The system variable expire_logs_days removes the binary logs automatically after the given number of days. The default is 0, which means no automatic removal. Possible removals happen at startup and at binary log rotation. For transactions, it never causes rotation instead it writes

Fw: bin-log with expire_logs_days

2006-10-19 Thread Visolve DB Team
: Thursday, October 19, 2006 4:00 PM Subject: Re: bin-log with expire_logs_days Hi, The system variable expire_logs_days removes the binary logs automatically after the given number of days. The default is 0, which means no automatic removal. Possible removals happen at startup and at binary log

RE: bin-log with expire_logs_days

2006-10-19 Thread George Law
Thanks Dan. According to the docs, the BEFORE option was introduced in 4.1. I just tried the purge with the to option : PURGE MASTER LOGS TO 'db1-bin.002'; Query OK, 0 rows affected (0.01 sec) so I think I will just purge a couple log files at a time until I can get the disk space down

bin-log with expire_logs_days

2006-10-18 Thread George Law
Hi All, I have a **high traffic** mysql 4.0.18-standard-log server running with bin-logging enabled. Right now, this must be using a default setting for expire_log_days. I do not see this anyway in show variables or show status $ echo show variables | sql |grep bin binlog_cache_size

Re: bin-log with expire_logs_days

2006-10-18 Thread Dan Buettner
On 10/18/06, George Law [EMAIL PROTECTED] wrote: Hi All, I have a **high traffic** mysql 4.0.18-standard-log server running with bin-logging enabled. Right now, this must be using a default setting for expire_log_days. I do not see this anyway in show variables or show status $ echo show

Binary Log Files and Load Data In-File

2006-10-17 Thread Ow Mun Heng
Hi Guys, Need some pointers. I've got a MySQL server (5.0.22) which is basically pulling data from SQL Server into a file and then I'm using mysqlimport to load the data into the DB. The updates are being generated like every 2 to 5 seconds. Due to this, my Binary Log files are huge! (and many

Red Hat slow query log

2006-09-27 Thread Brian Dunning
Before I do this, I just wanted to check with you all to see if this is the correct command: /etc/rc.d/init.d/mysqld restart --log-slow-queries If so, where exactly will I find the slow query log? Will the slow query log be turned off by default next time I restart it? -- MySQL General

Re: Red Hat slow query log

2006-09-27 Thread Chris
Brian Dunning wrote: Before I do this, I just wanted to check with you all to see if this is the correct command: /etc/rc.d/init.d/mysqld restart --log-slow-queries If so, where exactly will I find the slow query log? Will the slow query log be turned off by default next time I restart

Log files

2006-08-17 Thread bruce
hi... i changed the mysql my.cnf to provide log files. i restarted mysql, but i don't see the log files... any idea as to what i may have missed. i'm running FC4, mysql 4.1. the my.cnf is: [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock set-variable = max_connections=1000 set

Re: Log files

2006-08-17 Thread Chris
bruce wrote: hi... i changed the mysql my.cnf to provide log files. i restarted mysql, but i don't see the log files... any idea as to what i may have missed. i'm running FC4, mysql 4.1. the my.cnf is: [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock set-variable

Re: Log files

2006-08-17 Thread Chris
bruce wrote: chris... hate to tell you.. .but you can have the log files set as i described.. the real issue was due to permission issues on the dir/file for the mysql lol.. i'm not having much luck answering questions lately ;) Thanks for letting us know about the fix. -- MySQL General

Slow log logs non-slow statements

2006-08-15 Thread Dominik Klein
I have specified log-slow-queries long-query-time=10 in my.cnf and restarted my server. After that I see statements logged into the slow-log-file. But it seems that mysql logs too much into that file. When executing this statement: mysql show variables like %tx

Re: Slow log logs non-slow statements

2006-08-15 Thread Jay Pipes
It is likely you are also logging any queries not using an index (doing full table scans). Check the configuration variable: log_long_format Cheers, Jay On Tue, 2006-08-15 at 14:45 +0200, Dominik Klein wrote: I have specified log-slow-queries long-query-time=10 in my.cnf and restarted

Why can't output to error log file when INNODB happened ERROR1205?

2006-08-10 Thread nakai
Why can't output to error log file when INNODB happened ERROR1205? All server error message is output to error log file, isn't it? -- create table test (id int ,name text)engine=innodb; insert into test values ( 1, 'test'); -- Pattern 1 -- CLIENT A: begin; select

Why can't output to error log file when INNODB happened ERROR1205?

2006-08-10 Thread nakai
Why can't output to error log file when INNODB happened ERROR1205? All server error message is output to error log file, isn't it? -- create table test (id int ,name text)engine=innodb; insert into test values ( 1, 'test'); -- Pattern 1 -- CLIENT A: begin; select

Re: Relay Log Lost on Slave

2006-08-02 Thread Kenji HIROHAMA
: Hi, If you relay log is lost try out the this :- Run the Change Master Position script, See the log output from where did the replication stopped. So you can start your replication. Thanks Regards Dilipkumar - Original Message - From: Kenji HIROHAMA [EMAIL PROTECTED] To: mysql

Re: Relay Log Lost on Slave

2006-08-02 Thread Dilipkumar
Hi, First reset slave and then change master to script run it. Thanks Regards Dilipkumar - Original Message - From: Kenji HIROHAMA [EMAIL PROTECTED] To: Dilipkumar [EMAIL PROTECTED] Cc: mysql@lists.mysql.com Sent: Wednesday, August 02, 2006 3:29 PM Subject: Re: Relay Log Lost

Version 5.1.6-alpha-log unexpected total crash

2006-08-02 Thread Ben Clewett
Dear MySQL, I am getting an unexpected crash in MySQL 5.1.6, with nothing written to the log. This happens with InnoDB tables and an Foreign Key error. Tables are something like: CREATE TABLE tax ( `type` varchar(8) NOT NULL, PRIMARY KEY (`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8

Re: Version 5.1.6-alpha-log unexpected total crash MORE DETAILS

2006-08-02 Thread Ben Clewett
to the log. This happens with InnoDB tables and an Foreign Key error. Tables are something like: CREATE TABLE tax ( `type` varchar(8) NOT NULL, PRIMARY KEY (`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 CREATE TABLE `service` ( `service_code` varchar(16) NOT NULL default '', `country_code

Re: Relay Log Lost on Slave

2006-08-02 Thread Kenji HIROHAMA
[EMAIL PROTECTED] Cc: mysql@lists.mysql.com Sent: Wednesday, August 02, 2006 3:29 PM Subject: Re: Relay Log Lost on Slave Hi Dilipkumar, I checked the output of show slave status, and memorize; RELAY_MASTER_LOG_FILE, and EXEC_MASTER_LOG_POS. Then, change master to master_log_file='xx

Relay Log Lost on Slave

2006-08-01 Thread Kenji HIROHAMA
Hi, Under my replication environment, what should I do if I lose the current relay-log file on slave side? 1. one master and one slave replication is working 2. stop the master and the slave 3. remove the current relay log file manually 4. I can't start replication with start slave command

Re: Relay Log Lost on Slave

2006-08-01 Thread Dilipkumar
Hi, If you relay log is lost try out the this :- Run the Change Master Position script, See the log output from where did the replication stopped. So you can start your replication. Thanks Regards Dilipkumar - Original Message - From: Kenji HIROHAMA [EMAIL PROTECTED] To: mysql

Slow query log: administrator command: quit ?

2006-07-31 Thread TK
My MySQL server (4.0.20, Linux) was running slowly. I checked the slow queries log, and found many of these during the problem period: # Time: 060730 20:44:40 # [EMAIL PROTECTED]: xxx [] # Query_time: 68 Lock_time: 0 Rows_sent: 0 Rows_examined: 2 # administrator command: Quit; # [EMAIL

Re: Slow query log: administrator command: quit ?

2006-07-31 Thread Chris
TK wrote: My MySQL server (4.0.20, Linux) was running slowly. I checked the slow queries log, and found many of these during the problem period: # Time: 060730 20:44:40 # [EMAIL PROTECTED]: xxx [] # Query_time: 68 Lock_time: 0 Rows_sent: 0 Rows_examined: 2 # administrator command: Quit

replicated queries are not placed in the binary log of dual master replication set up

2006-07-24 Thread Rod Heyd
A are replicated to slave A, and inserts on master B are replicated to slave B). However, queries that are run on master A, do *not* make it all the way to slave B. The queries execute on master B but I have verified that they are not being written to master B's binary log. Hence, slave B is not seeing

Re: mysql/syslog - 100,000s of log messages on restart

2006-07-23 Thread Dilipkumar
Hi, In ur cnf file mention the log file path as log=/mysql/logs/mysqllog/qry.log . log-slow-queries=/mysql/logs/mysqllog/slowqry.log and restart mysql. Thanks Regards Dilipkumar - Original Message - From: Adam Rosi-Kessel [EMAIL PROTECTED] To: mysql@lists.mysql.com Sent: Sunday

mysql/syslog - 100,000s of log messages on restart

2006-07-22 Thread Adam Rosi-Kessel
I'm running MySQL 4.0.23 on a Debian Sarge system. Often, when I reboot twice in a short time period, MySQL doesn't seem to shut down gracefully -- it takes a long time for it to come up fully, and if I reboot before that, I get a lot of log messages. I think it takes about an hour to come up

Announce: Log Buffer, a Carnival of the Vanities for the DBA world

2006-07-14 Thread Paul Vallee
one on your own blog! About page. Here you can learn what the heck a carnival of the vanities is and how to participate in this one: http://www.pythian.com/blogs/about-log-buffer/ Log Buffer #1, edited by our very own Dave Edwards: http://www.pythian.com/blogs/224/log-buffer-1-a-carnival

Less verbose logging with --log

2006-07-14 Thread Dan Trainor
Hi - I was wondering if there was a way to have a less verbose --log. All I want to see is connects, disconnects, and if they're successful or not. The reason I ask is because this server runs thousands of queries a minute, and I'd rather not log *all* data for reasons of performance

does Query_time in slow log include time for client to receive answer set?

2006-07-13 Thread Sid Lane
execute hundreds of thousands of time/day to suddeny slow log (w/such low Rows_% #s) across multiple MySQL nodes then just as suddenly stop?

RE: How to log the execution time of each query

2006-07-12 Thread Rithish Saralaya
I would like to log the execution time for each query in my MySQL server .Is there any possible way? If you are using MySQL to serve an application, then it is advisable to do the logging through the application scripts. For in most cases, you might require more information other than time

Re: How to log the execution time of each query

2006-07-11 Thread Barry
Saha, Mukul (Cognizant) schrieb: Hi, I would like to log the execution time for each query in my MySQL server .Is there any possible way? Please not that, the - log-slow-queries option will not suffice for my requirement. Thanks Regards Mukul Saha Hi, Well there is no option

<    1   2   3   4   5   6   7   8   9   10   >