Starting MySQL takes a long long time

2016-10-10 Thread Martijn Tonies (Upscene Productions)
Hello all, Had a normal MySQL shutdown, reboot and then this happens: 161010 10:58:30 [Note] Plugin 'FEDERATED' is disabled. 161010 10:58:31 InnoDB: The InnoDB memory heap is disabled 161010 10:58:31 InnoDB: Mutexes and rw_locks use Windows interlocked functions 161010 10:58:31 InnoDB: Compressed

time-out with Java connector

2016-03-12 Thread Hal.sz S.ndor
I wrote a Java program to connect with MySQL server. As long as it was loose classes in a directory, it worked. As soon as I made it into a JAR file, I had trouble. If I used flag "classpath" to refer to the connector, the connector was not found: with flag "-XshowSettings" I saw that the conne

Re: get row inserted time or modified time

2015-06-09 Thread Bob Eby
> if you define a column with any name and a type of > > timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP Thanks Lucio, This is much better advice than the NOW() built-in function I would have suggested. Kind Regards, -Bob -- MySQL General Mailing List For list archives

Re: get row inserted time or modified time

2015-06-04 Thread Lucio Chiappetti
On Tue, 2 Jun 2015, Selvam Gce wrote: Is there any way to get row inserted time or modified time in my mysql table??? if you define a column with any name and a type of timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP this will automatically timestamp each record

Re: get row inserted time or modified time

2015-06-02 Thread Lukas Lehner
Hi you should do that in your App with Triggers and an audit table. You will see timestamps also in binary log (in case you enabled that) On Tue, Jun 2, 2015 at 11:28 AM, Selvam Gce wrote: > Is there any way to get row inserted time or modified time in my mysql > table? Thanks &am

get row inserted time or modified time

2015-06-02 Thread Selvam Gce
Is there any way to get row inserted time or modified time in my mysql table?  Thanks & Regards, Selvam | Linkedin

Re: time stamp specific to columns

2015-04-14 Thread hsv
On 2015/04/09 13:42, Michael Dykman wrote: A trigger is far simpler than remodelling your data and adding extra queries. They are nothing to be afraid of. Not afraid of, but to be careful when writing. I have had trouble with my triggers, because I left this&that out. As for timestamping, MyS

Re: time stamp specific to columns

2015-04-09 Thread Michael Dykman
in any of >>> four different columns, but I don¹t care about changes in other >>> columns or >>> added columns. >>> >>> Is there a command that says ³update the time stamp if and only if there >>> is a change in columns a, b,c, or

Re: time stamp specific to columns

2015-04-09 Thread hsv
ble where I care about changes in any of four different columns, but I don¹t care about changes in other columns or added columns. Is there a command that says ³update the time stamp if and only if there is a change in columns a, b,c, or d" -- MySQL General Mailing List For lis

Re: time stamp specific to columns

2015-04-08 Thread Emil Oppeln-Bronikowski
W dniu 08.04.2015 o 17:42, Andrew Wallace pisze: I think you'd have to do that with a trigger. +1 for using triggers. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: time stamp specific to columns

2015-04-08 Thread Andrew Wallace
anges in any of four different columns, but I don¹t care about changes in other columns or added columns. Is there a command that says ³update the time stamp if and only if there is a change in columns a, b,c, or d" -- MySQL General Mailing List For list archives: http://lists.mysql.co

time stamp specific to columns

2015-04-08 Thread Martin Mueller
columns. Is there a command that says ³update the time stamp if and only if there is a change in columns a, b,c, or d" -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: Long time for client to connect; not for script.

2014-11-11 Thread Hartmut Holzgraefe
sh) may make a difference. This will disable fetching schema information on all possible table and column names for tab completion which can take quite some time depending on the shema size of the database you're connecting to ... -- Hartmut Holzgraefe, Principal Support Engine

Long time for client to connect; not for script.

2014-11-10 Thread Ken D'Ambrosio
Can someone help explain something to me? When I use "mysql" to connect to my server, it can take upwards of 15 seconds. When I use any of the Ruby scripts I've written, it's so fast it's not even obvious it's querying a remote host. Any idea what might cause this disparity? (My initial sus

RE: converting numeric to date-time?

2014-09-06 Thread hsv
date digits, "140930" at the beginning looks like September 30, 2014. If that's the case, you need to write something that will tear it apart. <<<<<<<< MySQL s interpretation of timestamps is already such that not much such code is needed: see "Overview of

Re: converting numeric to date-time?

2014-09-05 Thread Johan De Meersman
- Original Message - > From: "Jan Steinman" > Subject: RE: converting numeric to date-time? > > I don't think the OP has a Unix timestamp. OP explicitly says "epoch including milliseconds" - so it's going to be three digits too long :-) divide

Re: converting numeric to date-time?

2014-09-05 Thread Glyn Astill
> From: Jan Steinman >To: mysql@lists.mysql.com >Sent: Thursday, 4 September 2014, 16:40 >Subject: RE: converting numeric to date-time? > > >> From: "Ed Mierzwa (emierzwa)" >> >> >> FROM_UNIXTIME(1409304102.153)/*your epoch column

RE: converting numeric to date-time?

2014-09-04 Thread Jan Steinman
> From: "Ed Mierzwa (emierzwa)" > > > FROM_UNIXTIME(1409304102.153) /*your epoch column here*/ I don't think the OP has a Unix timestamp. The number looks suspeciously like concatenation of date digits, "140930" at the beginning looks like September 30, 2014. If that's the case, you need to

RE: converting numeric to date-time?

2014-09-02 Thread Ed Mierzwa (emierzwa)
mber 01, 2014 5:51 PM To: Rajeev Prasad Cc: MYSQL General List Subject: Re: converting numeric to date-time? * Rajeev Prasad [2014-09-01 17:55]: > I have a column in a table which is epoch time including milliseconds. > > e.g. = 1409304102153 > > > now i want to display all

Re: converting numeric to date-time?

2014-09-01 Thread Philip Amadeo Saeli
* Rajeev Prasad [2014-09-01 17:55]: > I have a column in a table which is epoch time including milliseconds. > > e.g. = 1409304102153 > > > now i want to display all fields in the table but this field as: "2014-8-29 > Fri 09:21:42: GMT" (whatever come

converting numeric to date-time?

2014-09-01 Thread Rajeev Prasad
I have a column in a table which is epoch time including milliseconds. e.g. = 1409304102153 now i want to display all fields in the table but this field as: "2014-8-29 Fri 09:21:42: GMT" (whatever comes in ) and i am not finding anything on web about how to do that.

Re: mysqld_safe running a long time

2014-08-20 Thread Augori
Maybe it's because I'm accessing it through a C Panel SSH Shell that it acts differently than you expected. It doesn't matter anyway… I was able to exit the shell and regain control of my shell. I'm giving up on the upgrade approach for now, so let's consider this conversation concluded. On We

Re: mysqld_safe running a long time

2014-08-20 Thread Reindl Harald
Am 21.08.2014 um 01:05 schrieb Augori: > when I use the bg command, it says > > 1 job already in background > > and continues to run in the foreground. *bullshit* if it is running in foreground you can't enter anything because your terminal would be blocked, the bg command only works if you s

Re: mysqld_safe running a long time

2014-08-20 Thread Augori
Hi All, when I use the bg command, it says 1 job already in background and continues to run in the foreground. On Wed, Aug 20, 2014 at 11:04 AM, Reindl Harald wrote: > > > Am 20.08.2014 um 16:39 schrieb Augori: > > However, it's been 12 hours now and the thing is still restarting in safe > >

Re: mysqld_safe running a long time

2014-08-20 Thread Reindl Harald
Am 20.08.2014 um 18:55 schrieb Augori: > Thanks! But if it's running in the background, how will I know when it has > completed? completed what?! http://www.catb.org/esr/faqs/smart-questions.html#beprecise what did you not understand in the paragraph below? >> mysqld_safe has *nothing* to do

Re: mysqld_safe running a long time

2014-08-20 Thread Augori
Thanks! But if it's running in the background, how will I know when it has completed? On Wed, Aug 20, 2014 at 11:04 AM, Reindl Harald wrote: > > > Am 20.08.2014 um 16:39 schrieb Augori: > > However, it's been 12 hours now and the thing is still restarting in safe > > mode and I can't tell if i

Re: mysqld_safe running a long time

2014-08-20 Thread Reindl Harald
Am 20.08.2014 um 16:39 schrieb Augori: > However, it's been 12 hours now and the thing is still restarting in safe > mode and I can't tell if it's making progress. The command I typed was > > /usr/bin/mysqld_safe --skip-grant-tables& > > I think I forgot to include the ampersand (&) at the end

mysqld_safe running a long time

2014-08-20 Thread Augori
Hi all, mysql db has been starting in safe mode for 12 hours. I don't know if I should stop it or if I do, what will happen. I'm hoping one of you can help. Here's how I got into this mess: After a operating system change (CentOS 5 to CentOS 6), my Python script could no longer connect with mys

Re: Query time taken on disk

2014-07-14 Thread greg . lane
Hi Satendra, On 7/14/2014 5:48 AM, Satendra wrote: Hi there, I'm struggling to find the total time taken by a database query on the disk? As I understand when a database query start execution it takes some time inside the database engine & some time to seek the result from disk (if th

Re: Query time taken on disk

2014-07-14 Thread Morgan Tocker
Hi Satendra, On Jul 14, 2014, at 3:48 AM, Satendra wrote: > Hi there, I'm struggling to find the total time taken by a database query > on the disk? As I understand when a database query start execution it takes > some time inside the database engine & some time to seek the

Re: Query time taken on disk

2014-07-14 Thread Keith Murphy
ngle: http://www.markleith.co.uk/2011/05/23/monitoring-mysql-io-latency-with-performance_schema/ keith On Mon, Jul 14, 2014 at 5:59 AM, Reindl Harald wrote: > > > Am 14.07.2014 12:48, schrieb Satendra: > > Hi there, I'm struggling to find the total time taken by a database query > >

Re: Query time taken on disk

2014-07-14 Thread Reindl Harald
Am 14.07.2014 12:48, schrieb Satendra: > Hi there, I'm struggling to find the total time taken by a database query > on the disk? As I understand when a database query start execution it takes > some time inside the database engine & some time to seek the result from > di

Query time taken on disk

2014-07-14 Thread Satendra
Hi there, I'm struggling to find the total time taken by a database query on the disk? As I understand when a database query start execution it takes some time inside the database engine & some time to seek the result from disk (if that is not in cache/buffer) Can anybody from the gro

Re: Java UTC Calendar and Mysql TimeStamp - Gets me every time!!!!!

2013-08-22 Thread hsv
2013/08/22 14:22 -0400, Nick Cameo SimpleDateFormat sdf = new SimpleDateFormat("-MM-dd'T'HH:mm:ss", new Locale("en", "US")); Well, you have your answer (FROM_UNIXTIME( /1000)), but that stupid ISO format with 'T' in the middle does not work, because to MySQL letters are n

Re: Java UTC Calendar and Mysql TimeStamp - Gets me every time!!!!!

2013-08-22 Thread Nick Cameo
Sorry, as was mentioned earlier: select FROM_UNIXTIME(1377196112065/1000); +---+ | FROM_UNIXTIME(1377196112065/1000) | +---+ | 2013-08-22 18:28:32 | +---+ Have a good day everyone :) Ni

Re: Java UTC Calendar and Mysql TimeStamp - Gets me every time!!!!!

2013-08-22 Thread Nick Cameo
t; > The same effect may be gotten with any timestamp-formatting function that > yields a string in the form '2013/08/21 18:03:00' (it is all one whether > the separator is hyphen, slant, colon, ...). > > > -- > MySQL General Mailing List > For list archives: http

Re: Java UTC Calendar and Mysql TimeStamp - Gets me every time!!!!!

2013-08-21 Thread hsv
2013/08/21 18:03 -0400, Nick Khamis We have the following mysql timetampe field startdate | timestamp | NO | | -00-00 00:00:00 When trying to insert a long value in there: Calendar c = Calendar.getInstance(TimeZone.getTimeZone("UTC")); c.getTimeInMillis(); We are presented w

Re: Java UTC Calendar and Mysql TimeStamp - Gets me every time!!!!!

2013-08-21 Thread Michael Dykman
Nick, You should have answered your own question in the text. The MySql TIMESTAMP type is, as all other timestamps in the *nix world, a count of seconds since epoch time. The Java function you are using yields MILLI-seconds. Divide it by 1000 and you should be good to go. On Wed, Aug 21

Java UTC Calendar and Mysql TimeStamp - Gets me every time!!!!!

2013-08-21 Thread Nick Khamis
Hello Everyone, We have the following mysql timetampe field startdate | timestamp | NO | | -00-00 00:00:00 When trying to insert a long value in there: Calendar c = Calendar.getInstance(TimeZone.getTimeZone("UTC")); c.getTimeInMillis(); We are presented with the following error: com

Re: Cannot load time zone tables to MySQL

2013-04-06 Thread shawn green
Hello Joe On 4/5/2013 10:25 AM, Joe Kosinski wrote: I have installed the community edition version 5.6 to my MacBook running OSX 10.8.3. I am trying to set up MythTV backend which requires the time zone tables to be loaded for the database I will be using. I have not been able to load the

Re: Cannot load time zone tables to MySQL

2013-04-05 Thread shawn green
Hi Joseph, We request that except for sensitive information that you keep all responses on the list. This way the entire community can kick in for assistance. On 4/5/2013 12:25 PM, Joseph Kosinski wrote: Thanks for your response. This has been troubling me for days! I am not too familiar wi

Re: How to loop a query that is only able to handle 1 ROW at a time?

2012-08-19 Thread Rob Pollock
Hi Incarus, You don't need a loop just a correlated subquery on the update: UPDATE TB1 SET Ivet=PREG_REPLACE('/TeXT/', '', Ivet); Example: mysql> CREATE TABLE blah(value INTEGER, square INTEGER); Query OK, 0 rows affected (0.17 sec) mysql> INSERT INTO blah(value) VALUES (1),(2),(3),(4),(5); Q

How to loop a query that is only able to handle 1 ROW at a time?

2012-08-19 Thread Incarus Derp
I have a two line query that is only able to handle 1 row per execution. Could any of you give me some insight on how I could loop this per every single row in the table? The query in question is: SELECT PREG_REPLACE('/TeXT/', '' , Ivet) FROM `DB1`.`TB1` INTO @VAR12; UPDATE `TB1` SET Ivet = @VAR12

Re: real Time

2012-08-13 Thread Michael Anderson
Look at Nodejs, asynchronous server-side programming environment. That combined with some basic MySql triggers could do it for you. On 08/13/2012 04:07 PM, Rafael Valenzuela wrote: Hi all, i've a question about the mysql configuration, in my project, we need use data in real time (rea

real Time

2012-08-13 Thread Rafael Valenzuela
Hi all, i've a question about the mysql configuration, in my project, we need use data in real time (read and insert) . But i don't idea about this matter. Any advice or information? i'm so sorry the hassle. -- Mit forever My Blog <http://www.redcloverbi.wordpress.com>

Re: YEAR and time types

2012-07-30 Thread hsv
2012/07/24 13:07 -0700, Hassan Schroeder On Tue, Jul 24, 2012 at 10:36 AM, Roberta Jaskólski wrote: > version(): 5.5.8-log > @@sql_mode: > REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI,NO_AUTO_VALUE_ON_ZERO,STRICT_TRANS_TABLES,NO_ZERO_DATE,ALLOW_INVALID_DATES,NO_AUTO_CR

Re: YEAR and time types

2012-07-24 Thread Roberta Jask�lski
2012/07/24 08:46 -0700, Hassan Schroeder On Mon, Jul 23, 2012 at 5:58 AM, wrote: > I thought I would try YEAR to record it--but, in spite of > http://dev.mysql.com/doc/refman/5.5/en/year.html , simply assigning NOW() to > such a type does not work. Not sure I understand the issue:

RE: YEAR and time types

2012-07-24 Thread hsv
2012/07/23 11:54 -0700, Rick James mysql> SELECT YEAR(NOW()); +-+ | YEAR(NOW()) | +-+ |2012 | +-+ mysql> SELECT CONCAT('2012', '-01-01'); +--+ | CONCAT('2012', '-01-01') | +--+ | 2012-01-01

RE: restrict Connect Time

2012-07-23 Thread Rick James
And don't kill replication when you see a big time in processlist. > therefore the time get accumulated ?? Each query stands alone in timing. The "idle" time is caught by wait_timeout, which was already mentioned. You can distinguish the cases by whether processlis

RE: YEAR and time types

2012-07-23 Thread Rick James
1-01') - INTERVAL 1 day | +---+ | 2011-12-31| +---+ > -Original Message- > From: h...@tbbs.net [mailto:h...@tbbs.net] > Sent: Monday, July 23, 2012 5:59 AM > To: mysql@lists.mysql.com > Subject: YEAR and time types &g

Re: restrict Connect Time

2012-07-23 Thread walter harms
t;> >> The programms watch certain states in the database, >> the connect automatic at db startup, disconnecting >> is an error case. > > so why do you want to restrict connect time > if this is a error-case for you? > no, this is a misunderstanding, i want to

Re: restrict Connect Time

2012-07-23 Thread Ananda Kumar
not very clear. You use connection pooling, right. If the same session/thread is held for long time, it means the thread is not getting closed even after doing its job, and adding to execution time. On Mon, Jul 23, 2012 at 9:05 PM, walter harms wrote: > > > Am 23.07.2012 16:58, schri

Re: restrict Connect Time

2012-07-23 Thread Reindl Harald
ic at db startup, disconnecting > is an error case. so why do you want to restrict connect time if this is a error-case for you? signature.asc Description: OpenPGP digital signature

Re: restrict Connect Time

2012-07-23 Thread walter harms
2 at 8:17 PM, walter harms wrote: > >> >> >> Am 23.07.2012 16:37, schrieb Ananda Kumar: >>> why dont u setup a staging env, which is very much similar to your >>> production and tune all long running sql >>> >> >> They are tuned and they ar

Re: restrict Connect Time

2012-07-23 Thread Ananda Kumar
all long running sql > > > > They are tuned and they are fast :) but the never logout and therefore > the time get accumulated. > > re, > wh > > > > On Mon, Jul 23, 2012 at 8:02 PM, walter harms wrote: > > > >> > >> > >> Am 23.0

Re: restrict Connect Time

2012-07-23 Thread walter harms
Am 23.07.2012 16:37, schrieb Ananda Kumar: > why dont u setup a staging env, which is very much similar to your > production and tune all long running sql > They are tuned and they are fast :) but the never logout and therefore the time get accumulated. re, wh > On Mon, Jul 2

Re: restrict Connect Time

2012-07-23 Thread Ananda Kumar
#x27;s which > > are taking more time to execute > > > > Yes but you will see the results only when the query is finished. > my first idea was to use something like this: > select * from information_schema.processlist where state like 'executing' > and time >

Re: restrict Connect Time

2012-07-23 Thread walter harms
Am 23.07.2012 16:10, schrieb Ananda Kumar: > you can check the slow query log, this will give you all the sql's which > are taking more time to execute > Yes but you will see the results only when the query is finished. my first idea was to use something like this:

Re: restrict Connect Time

2012-07-23 Thread Ananda Kumar
you can check the slow query log, this will give you all the sql's which are taking more time to execute On Mon, Jul 23, 2012 at 7:38 PM, walter harms wrote: > > > Am 23.07.2012 15:47, schrieb Ananda Kumar: > > you can set this is in application server. > > You can

Re: restrict Connect Time

2012-07-23 Thread walter harms
gt; > On Mon, Jul 23, 2012 at 6:18 PM, walter harms wrote: > >> Hi list, >> is there a switch where i can restrict the connect/execution time for a >> query ? >> >> re, >> wh >> >> -- >> MySQL General Mailing List >> For list

Re: restrict Connect Time

2012-07-23 Thread Ananda Kumar
cution time for a > query ? > > re, > wh > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql > >

YEAR and time types

2012-07-23 Thread hsv
A director s term ends in a given year, but at no given time of year; depends on the yearly meeting. I thought I would try YEAR to record it--but, in spite of http://dev.mysql.com/doc/refman/5.5/en/year.html , simply assigning NOW() to such a type does not work. There is also no implicit

restrict Connect Time

2012-07-23 Thread walter harms
Hi list, is there a switch where i can restrict the connect/execution time for a query ? re, wh -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

RE: Subquery taking too much time on 5.5.18?

2012-07-16 Thread Rick James
ginal Message- > From: Cabbar Duzayak [mailto:cab...@gmail.com] > Sent: Friday, July 06, 2012 8:46 AM > To: mysql@lists.mysql.com > Subject: Subquery taking too much time on 5.5.18? > > Hi Everyone, > > I have been trying to understand why subqueries are taking tooo mu

RE: Subquery taking too much time on 5.5.18?

2012-07-16 Thread Rick James
To: mysql@lists.mysql.com > Subject: Re: Subquery taking too much time on 5.5.18? > > > > Am 06.07.2012 17:46, schrieb Cabbar Duzayak: > > Hi Everyone, > > > > I have been trying to understand why subqueries are taking tooo much > > time on my installation of MySQL

RE: Fwd: Query take too long time - please help!

2012-07-16 Thread Rick James
lists.mysql.com > Subject: Re: Fwd: Query take too long time - please help! > > On 10.07.2012 13:16, Darek Maciera wrote: > > 2012/7/10 Ananda Kumar : > >> can u show the explain plan for your query > >> > > > > Thanks, for reply! > > > >

Re: Fwd: Query take too long time - please help!

2012-07-10 Thread Carsten Pedersen
On 10.07.2012 13:16, Darek Maciera wrote: 2012/7/10 Ananda Kumar : can u show the explain plan for your query Thanks, for reply! Sure: mysql> EXPLAIN SELECT * FROM books WHERE LOWER(ksd)=LOWER('4204661375'); That's definitely not the query you showed the first time

Re: Query take too long time - please help!

2012-07-10 Thread Ananda Kumar
you are using a function-LOWER, which will not make use of the unique key index on ksd. Mysql does not support function based index, hence your query is doing a FULL TABLE scan and taking more time. On Tue, Jul 10, 2012 at 4:46 PM, Darek Maciera wrote: > 2012/7/10 Ananda Kumar : > > c

Fwd: Query take too long time - please help!

2012-07-10 Thread Darek Maciera
2012/7/10 Ananda Kumar : > can u show the explain plan for your query > Thanks, for reply! Sure: mysql> EXPLAIN SELECT * FROM books WHERE LOWER(ksd)=LOWER('4204661375'); ++-+-+--+---+--+-+--++-+ | id | se

Re: Query take too long time - please help!

2012-07-10 Thread Ananda Kumar
ips |1 | ips | A | > 8 | NULL | NULL | | BTREE | | > | books | 1 | idx_ips2 |1 | ips2 | A | > 8 | NULL | NULL | | BTREE | | > > Every books have unique: 'ksd'. There are about 370.000 record

Query take too long time - please help!

2012-07-10 Thread Darek Maciera
ds in this table. But this SELECT take too long time: mysql> SELECT * FROM books WHERE ksd ='A309CC47B7'; 1 row in set (2.59 sec) Table is in InnoDB engine. I added to my.cnf: innodb_buffer_pool_size = 512MB Any suggestions? Help, please.. -- MySQL General Mailing List For list arc

Re: Subquery taking too much time on 5.5.18?

2012-07-08 Thread Cabbar Duzayak
mysql> SELECT @@optimizer_switch; ++ | @@optimizer_switch | +

Re: Subquery taking too much time on 5.5.18?

2012-07-07 Thread Peter Brawley
On 2012-07-07 9:52 AM, Cabbar Duzayak wrote: Hmm, Looking at the link http://www.artfulsoftware.com/infotree/queries.php and explanations here, EXISTS() should have performed better, but does not seem to??? I stopped it after about 5 minutes. I tried both: SELECT * FROM A WHERE EXISTS (SELE

Re: Subquery taking too much time on 5.5.18?

2012-07-07 Thread Cabbar Duzayak
Hmm, Looking at the link http://www.artfulsoftware.com/infotree/queries.php and explanations here, EXISTS() should have performed better, but does not seem to??? I stopped it after about 5 minutes. I tried both: SELECT * FROM A WHERE EXISTS (SELECT * FROM B WHERE A.id=B.A_ID and B.name like 'X

Re: Subquery taking too much time on 5.5.18?

2012-07-06 Thread Rik Wasmus
> See "The unbearable slowness of IN()" at > http://www.artfulsoftware.com/infotree/queries.php Do you read your own links? Excerpt: > In 5.0, EXISTS() is much faster than IN(), but slower than JOIN. In 5.5, EXISTS() performs about as well as JOIN. So judging by the subject line... -- My

Re: Subquery taking too much time on 5.5.18?

2012-07-06 Thread Peter Brawley
oftware.com/infotree/queries.php SELECT a.* FROM a JOIN b USING(a_id) WHERE B.name LIKE 'X%'; PB - Does it help? David. -Original Message- From: Cabbar Duzayak [mailto:cab...@gmail.com] Sent: Friday, July 06, 2012 11:46 AM To: mysql@lists.mysql.com Subject: Subquery takin

RE: Subquery taking too much time on 5.5.18?

2012-07-06 Thread David Lerer
2 11:46 AM To: mysql@lists.mysql.com Subject: Subquery taking too much time on 5.5.18? Hi Everyone, I have been trying to understand why subqueries are taking tooo much time on my installation of MySQL 5.5.18 on Ubuntu 11.10 release. In a nutshell, I have 2 tables: A and B. And, I do something

Re: Subquery taking too much time on 5.5.18?

2012-07-06 Thread Cabbar Duzayak
forcing MySQL to run > from the inside out. I don't have a running instance nearby to test on, but I > hope it helps. > > > > > > > -Original Message- > From: Reindl Harald [mailto:h.rei...@thelounge.net] > Sent: Friday, July 06, 2012 11:58 AM &g

RE: Subquery taking too much time on 5.5.18?

2012-07-06 Thread Stillman, Benjamin
ping the subquery within another subquery, forcing MySQL to run from the inside out. I don't have a running instance nearby to test on, but I hope it helps. -Original Message- From: Reindl Harald [mailto:h.rei...@thelounge.net] Sent: Friday, July 06, 2012 11:58 AM To: mysql@lists.

Re: Subquery taking too much time on 5.5.18?

2012-07-06 Thread Reindl Harald
Am 06.07.2012 17:46, schrieb Cabbar Duzayak: > Hi Everyone, > > I have been trying to understand why subqueries are taking tooo much > time on my installation of MySQL 5.5.18 on Ubuntu 11.10 release. > > In a nutshell, I have 2 tables: A and B. And, I do something like this:

Subquery taking too much time on 5.5.18?

2012-07-06 Thread Cabbar Duzayak
Hi Everyone, I have been trying to understand why subqueries are taking tooo much time on my installation of MySQL 5.5.18 on Ubuntu 11.10 release. In a nutshell, I have 2 tables: A and B. And, I do something like this: SELECT * FROM A WHERE A.id IN (SELECT A_ID FROM B WHERE B.name like &#

Re: cannot pass time to function

2012-01-27 Thread Peter Brawley
On 1/27/2012 12:09 PM, John Heim wrote: I'm trying to create a function that formats a time in a standard way ('%H:%i'). But all I can seem to get back is null. DROP TABLE IF EXISTS bogus_table; CREATE TABLE IF NOT EXISTS bogus_table ( btime TIME ); INSERT INTO bogus_table VA

cannot pass time to function

2012-01-27 Thread John Heim
I'm trying to create a function that formats a time in a standard way ('%H:%i'). But all I can seem to get back is null. DROP TABLE IF EXISTS bogus_table; CREATE TABLE IF NOT EXISTS bogus_table ( btime TIME ); INSERT INTO bogus_table VALUES ('12:34:56'); DROP

Re: Date and Time

2012-01-08 Thread Govinda
> > leave it stored as a timestamp type or datetime type, and when you need to > display it otherwise.. then covert with date() oops, Paul's post reminded me I was suggesting a PHP function here ^^^ ... and this is the MySQL list. > -G -- MySQL General Mailing List For list archives: http:/

Re: Date and Time

2012-01-08 Thread Paul DuBois
On Jan 8, 2012, at 2:21 PM, Donovan Brooke wrote: > Hello, I'm doing an insert into with date and time type fields. > > I was reading: > http://dev.mysql.com/doc/refman/5.1/en/date-and-time-literals.html > > My question is: is the format always 'year month day&#x

Re: Date and Time

2012-01-08 Thread Govinda
> What's your problem/reason with how it is? I assume Andy means: leave it stored as a timestamp type or datetime type, and when you need to display it otherwise.. then covert with date() -G -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http:/

Re: Date and Time

2012-01-08 Thread Donovan Brooke
Peter Brawley wrote: On 1/8/2012 2:21 PM, Donovan Brooke wrote: Hello, I'm doing an insert into with date and time type fields. I was reading: http://dev.mysql.com/doc/refman/5.1/en/date-and-time-literals.html My question is: is the format always 'year month day'?.. or can w

Re: Date and Time

2012-01-08 Thread Peter Brawley
On 1/8/2012 2:21 PM, Donovan Brooke wrote: Hello, I'm doing an insert into with date and time type fields. I was reading: http://dev.mysql.com/doc/refman/5.1/en/date-and-time-literals.html My question is: is the format always 'year month day'?.. or can we save dates in 

Re: Date and Time

2012-01-08 Thread Andrew Moore
What's your problem/reason with how it is? Andy On Sun, Jan 8, 2012 at 8:21 PM, Donovan Brooke wrote: > Hello, I'm doing an insert into with date and time type fields. > > I was reading: > http://dev.mysql.com/doc/**refman/5.1/en/date-and-time-**literals.html<http:/

Date and Time

2012-01-08 Thread Donovan Brooke
Hello, I'm doing an insert into with date and time type fields. I was reading: http://dev.mysql.com/doc/refman/5.1/en/date-and-time-literals.html My question is: is the format always 'year month day'?.. or can we save dates in 'month day year' as well? Thanks, Donova

Re: Synchronize two mysql servers (single user, only one server (but not both) can be changed at any given time)

2011-10-18 Thread Andrew Moore
wrote: > - Original Message - > > From: "Peng Yu" > > > > Suppose I have two servers (one on mac and one on ubuntu), at any > > time I only change one server but not both servers. After I have done > > > > I think that probably it is OK to synchr

Re: Synchronize two mysql servers (single user, only one server (but not both) can be changed at any given time)

2011-10-17 Thread Johan De Meersman
- Original Message - > From: "Peng Yu" > > Suppose I have two servers (one on mac and one on ubuntu), at any > time I only change one server but not both servers. After I have done > > I think that probably it is OK to synchronize these two servers at >

Synchronize two mysql servers (single user, only one server (but not both) can be changed at any given time)

2011-10-17 Thread Peng Yu
servers (one on mac and one on ubuntu), at any time I only change one server but not both servers. After I have done changes on A, I want to propagate the changes to B. After I have done changes on B, I want to propagate the changes to A. I think that probably it is OK to synchronize these two servers at

Re: Quantity of time from difference of two Datetime values?

2011-10-01 Thread Jan Steinman
Thanks, Hank! I figured it was something like that, but couldn't see any clear documentation on the Oracle reference page on date/time functions. On Sep 30, 2011, at 8:22 PM, Hank wrote: > n Fri, Sep 30, 2011 at 11:08 PM, Jan Steinman wrote: >> Okay, I've reviewed the onlin

Re: Quantity of time from difference of two Datetime values?

2011-10-01 Thread Hal�sz S�ndor
>>>> 2011/09/30 20:08 -0700, Jan Steinman >>>> Okay, I've reviewed the online man page for date and time functions, and I've played with several likely candidates, and I am still having trouble subtracting two arbitrary Datetimes to get something that is useful

Re: Quantity of time from difference of two Datetime values?

2011-09-30 Thread Hank
n Fri, Sep 30, 2011 at 11:08 PM, Jan Steinman wrote: > Okay, I've reviewed the online man page for date and time functions, and I've > played with several likely candidates, and I am still having trouble > subtracting two arbitrary Datetimes to get something that

Quantity of time from difference of two Datetime values?

2011-09-30 Thread Jan Steinman
Okay, I've reviewed the online man page for date and time functions, and I've played with several likely candidates, and I am still having trouble subtracting two arbitrary Datetimes to get something that is useful. A simple subtraction yields the least useful thing possible: a

Re: How to view Query Execution time

2011-08-01 Thread Jon Siebert
he end of the query running it displays the time how much it > > took. > > > > Or else enable the profiling and run the query to check the exact time it > > took for execution at all levels. > > > > On Mon, Aug 1, 2011 at 12:11 PM, Adarsh Sharma > >wrote: > >

Re: How to view Query Execution time

2011-08-01 Thread Prabhat Kumar
at the end of the query running it displays the time how much it > took. > > Or else enable the profiling and run the query to check the exact time it > took for execution at all levels. > > On Mon, Aug 1, 2011 at 12:11 PM, Adarsh Sharma >wrote: > > > Dear all, > &g

Re: How to view Query Execution time

2011-07-31 Thread Suresh Kuna
Usually, at the end of the query running it displays the time how much it took. Or else enable the profiling and run the query to check the exact time it took for execution at all levels. On Mon, Aug 1, 2011 at 12:11 PM, Adarsh Sharma wrote: > Dear all, > > I want to know how much ti

  1   2   3   4   5   6   7   8   9   10   >