RE: query results group/summed by interval

2010-08-01 Thread Travis Ard
You could also pre-define your intervals in a subquery using UNION and join that to your original table like so: select ifnull(sum(calls), 0) as calls, n as queue_seconds from (select 0 as n union select 5 union select 10 union select 15) as step left join calls on calls.queue_seconds > (ste

On concurrent updates in mysql

2010-08-01 Thread tristartom
Hi, All, Regarding mysql, I have problems on concurrent updates in the following settings. I get a mysql server containing one database with 512 tables. There is also a client who send concurrent updates to the server, each update by a thread. As I increase the number of concurrent updates, I have

RE: query results group/summed by interval

2010-08-01 Thread nuno . tavares
Hi all, Aveeks solution should work if you have at least one call for each intervall. It's the classical GROUP BY solution that only works on the available dataset. Although it should work pretty well in the cited scenario, you will miss intervals (from a "all intervals report" point of view) if i

Re: strange authentication issue

2010-08-01 Thread Claudio Nanni
sorry I went to sleep CEST here, its created by default by MySQL Cheers! Claudio On 8/1/2010 2:15 AM, Corey wrote: On Saturday 31 July 2010 5:11:33 Claudio Nanni wrote: login as root and remove 'empty' user ,issue: delete from mysql.user where user=''; flush privileges; mysql authenti

Re: strange authentication issue

2010-08-01 Thread Claudio Nanni
sorry I went to sleep CEST here, its created by default by MySQL Cheers! Claudio On 8/1/2010 2:15 AM, Corey wrote: On Saturday 31 July 2010 5:11:33 Claudio Nanni wrote: login as root and remove 'empty' user ,issue: delete from mysql.user where user=''; flush privileges; mysql authenti