Re: mysql logs query with indexes used to the slow-log and not logging if there is index in reverse order

2012-10-16 Thread spameden
That's exactly what I thought when reading Michael's email, but tried anyways, thanks for clarification :) 2012/10/16 > 2012/10/16 12:57 -0400, Michael Dykman > your now() statement is getting executed for every row on the select. try > ptting the phrase up front > as in: > set @ut= u

Re: mysql logs query with indexes used to the slow-log and not logging if there is index in reverse order

2012-10-16 Thread hsv
2012/10/16 12:57 -0400, Michael Dykman your now() statement is getting executed for every row on the select. try ptting the phrase up front as in: set @ut= unix_timestamp(now()) and then use that in your statement. Quote: Functions that return the current date or time each are

Re: mysql logs query with indexes used to the slow-log and not logging if there is index in reverse order

2012-10-16 Thread spameden
Interesting thought, but I get the same result. # Query_time: 0.001769 Lock_time: 0.001236 Rows_sent: 0 Rows_examined: 0 use kannel; SET timestamp=1350413592; select * from send_sms FORCE INDEX (priority_time) where time<=@ut order by priority limit 0,11; the MySQL i'm using is 5.5.28 from dotd

Re: mysql logs query with indexes used to the slow-log and not logging if there is index in reverse order

2012-10-16 Thread Michael Dykman
your now() statement is getting executed for every row on the select. try ptting the phrase up front as in: set @ut= unix_timestamp(now()) and then use that in your statement. On 2012-10-16 8:42 AM, "spameden" wrote: Will do. mysql> SHOW GLOBAL VARIABLES LIKE '%log%'; +---

Re: mysql logs query with indexes used to the slow-log and not logging if there is index in reverse order

2012-10-16 Thread spameden
Will do. mysql> SHOW GLOBAL VARIABLES LIKE '%log%'; +-+-+ | Variable_name | Value | +-+-+ | back_log

Re: mysql logs query with indexes used to the slow-log and not logging if there is index in reverse order

2012-10-16 Thread Shawn Green
On 10/15/2012 7:15 PM, spameden wrote: Thanks a lot for all your comments! I did disable Query cache before testing with set query_cache_type=OFF for the current session. I will report this to the MySQL bugs site later. First. What are all of your logging settings? SHOW GLOBAL VARIAB

Re: mysql logs query with indexes used to the slow-log and not logging if there is index in reverse order

2012-10-15 Thread spameden
Thanks a lot for all your comments! I did disable Query cache before testing with set query_cache_type=OFF for the current session. I will report this to the MySQL bugs site later. 2012/10/16 Rick James > **Ø **My initial question was why MySQL logs it in the slow log if the > quer

RE: mysql logs query with indexes used to the slow-log and not logging if there is index in reverse order

2012-10-15 Thread Rick James
Ø My initial question was why MySQL logs it in the slow log if the query uses an INDEX? That _may_ be worth a bug report. A _possible_ answer... EXPLAIN presents what the optimizer is in the mood for at that moment. It does not necessarily reflect what it was in the mood for when it ran

RE: mysql logs query with indexes used to the slow-log and not logging if there is index in reverse order

2012-10-15 Thread Rick James
ber 15, 2012 3:23 PM To: Rick James Cc: mysql@lists.mysql.com Subject: Re: mysql logs query with indexes used to the slow-log and not logging if there is index in reverse order Sorry, my previous e-mail was a test on MySQL-5.5.28 on an empty table. Here is the MySQL-5.1 Percona testing table: mys

Re: mysql logs query with indexes used to the slow-log and not logging if there is index in reverse order

2012-10-15 Thread spameden
f I turn it off - it's all fine My initial question was why MySQL logs it in the slow log if the query uses an INDEX? And why it's not logging if I create an INDEX (time, priority) (but in the query there is FORCE INDEX (priority,time) specified, so MySQL shouldn't use newly creat

Re: mysql logs query with indexes used to the slow-log and not logging if there is index in reverse order

2012-10-15 Thread spameden
not a 3-digit integer, it is a full 32-bit integer (4 bytes). > Perhaps you should have SMALLINT UNSIGNED (2 bytes). > > * BIGINT takes 8 bytes -- usually over-sized. > > > > -Original Message- > > From: spameden [mailto:spame...@gmail.com] > > Sent: Monday, O

RE: mysql logs query with indexes used to the slow-log and not logging if there is index in reverse order

2012-10-15 Thread Rick James
IGINT takes 8 bytes -- usually over-sized. > -Original Message- > From: spameden [mailto:spame...@gmail.com] > Sent: Monday, October 15, 2012 1:42 PM > To: mysql@lists.mysql.com > Subject: mysql logs query with indexes used to the slow-log and not > logging if there is

Re: mysql logs query with indexes used to the slow-log and not logging if there is index in reverse order

2012-10-15 Thread spameden
Hi, I've just checked on MySQL-5.5.28 it acts absolutely same. I need to use (priority,time) KEY instead of (time, priority) because query results in better performance. With first key used there is no need to sort at all, whilst if using latter: mysql> *desc select * from send_sms_test FORCE IN

mysql logs query with indexes used to the slow-log and not logging if there is index in reverse order

2012-10-15 Thread spameden
Hi, list. Sorry for the long subject, but I'm really interested in solving this and need a help: I've got a table: mysql> show create table send_sms_test; +---+

Quit in MySQL logs

2008-06-22 Thread Malka Cymbalista
We are running MySQL 5.0.45 on a Linux machine. I have enabled the general query log and I notice that for some of the connections, the last command is Quit but for some of the connections, the Quit command does not appear. What do I have to do to ensure that the Quit command gets printed in t

Re: Usefulness of mysql logs when using innodb?

2008-05-20 Thread Moon's Father
You should keep it on in my opinion. On Tue, May 13, 2008 at 6:04 PM, Nico Sabbi <[EMAIL PROTECTED]> wrote: > Hi, > I guess that when I'm using only Innodb and no replication I can > safely disable mysql's (bin-) log files (that grow to no end) because > Innodb has its own log files. Is it correc

Usefulness of mysql logs when using innodb?

2008-05-13 Thread Nico Sabbi
Hi, I guess that when I'm using only Innodb and no replication I can safely disable mysql's (bin-) log files (that grow to no end) because Innodb has its own log files. Is it correct? Thanks, Nico -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

MySQL logs and restore data

2004-11-08 Thread Jerry Swanson
I deleted some data in mysql. Is it possible to restore the data. Maybe using MYSQL logs? Thanks -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

MySQL logs and restore data

2004-11-08 Thread Jerry Swanson
I deleted some data in mysql. Is it possible to restore the data. Maybe using MYSQL logs? Thanks -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysql logs too much

2004-09-29 Thread Paul DuBois
At 12:52 +0530 9/29/04, Kausalya Ramaswamy wrote: Does mysql 4.0 onwards log cached querries also or only direct non cached database access queries? i am getting enormous amount of log in the form of querries. ours is a databse driven website using mysql and php.thanks for the reply in advance If y

mysql logs too much

2004-09-29 Thread Kausalya Ramaswamy
Does mysql 4.0 onwards log cached querries also or only direct non cached database access queries? i am getting enormous amount of log in the form of querries. ours is a databse driven website using mysql and php.thanks for the reply in advance Thanks & Regards Kausalya Ramaswamy Scientific Of

Re: mySQL logs on Linux

2002-10-25 Thread Paul DuBois
At 3:02 -0800 10/25/02, neal wrote: Could someone tell me where the logs are written to by default, for a 3.23 install of MySQL on Linux? To the data directory. The location of this may vary per installation, but you can discover it with this query: SHOW VARIABLES LIKE 'datadir'; I looked i

re: mySQL logs on Linux

2002-10-25 Thread Egor Egorov
neal, Friday, October 25, 2002, 2:02:18 PM, you wrote: n> Could someone tell me where the logs are written to by default, for a 3.23 n> install of MySQL on Linux? n> I looked in /usr/share/mysql/english and each directory leading up to it, n> but I didn't see anything resembling a log file. By d

Re: mySQL logs on Linux

2002-10-25 Thread David Bordas
> Could someone tell me where the logs are written to by default, for a 3.23 > install of MySQL on Linux? > > I looked in /usr/share/mysql/english and each directory leading up to it, > but I didn't see anything resembling a log file. > > Thanks. > Neal Logs are in your data directory with the T

mySQL logs on Linux

2002-10-25 Thread neal
Could someone tell me where the logs are written to by default, for a 3.23 install of MySQL on Linux? I looked in /usr/share/mysql/english and each directory leading up to it, but I didn't see anything resembling a log file. Thanks. Neal -

rolling over mysql logs

2002-10-20 Thread Petre Agenbag
HI Probably a silly question, but how can I roll the logs for mysql? I started it with safe_mysqld --log-slow-queries --log & So it created two logs in my /var/lib/mysql folder, one holding ALL queries, and one for only the slow queries. The "general" log is growing quite rapidly, and I would lik

Re: MySQL LOGS

2002-09-10 Thread Paul DuBois
At 7:32 +0100 9/10/02, nick gatsis wrote: >Does anybody know how to make log files for each of my >databases? Log files are not written on a per-database basis. >Thanx > >sql, query - Before posting, please check: http://ww

MySQL LOGS

2002-09-09 Thread nick gatsis
Does anybody know how to make log files for each of my databases? Thanx sql, query Do You Yahoo!? &Agr;&pgr;&ogr;&kgr;&tgr;&eeacgr;&sgr;&tgr;&egr; &tgr;&eegr; &dgr;&ohgr;&rgr;&egr;&aacgr;&ngr; @yahoo.gr &dgr;&igr;&egr;&uacgr;&thgr;&ugr

MySQL Logs

2002-07-27 Thread Nitesh Divecha
Hello All, I need help with MySQL Log, can I know where does MySQL saves the log files. I need a log for ODBC; I have some problem with ODBC connection from outside. I need to know what the Error is. Please advice, Thanking in Advance. Regards Nitesh

I need help with the mysql logs.

2001-04-10 Thread eran yahav
I need help with the mysql logs. I want the mysql to enter the time it takes each query to run as well in the log. also i want to know from which file / program each query was run. Is that possible ? if so how can i do it or where can i find more information. thanks eran