Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Support bacteria -- it's the only culture some people have!


devel / comp.databases.mysql / Re: MariaDB on Windows: SELECT query with ROW_NUMBER() kills the MariaDB 10.6.4 service

SubjectAuthor
* MariaDB on Windows: SELECT query with ROW_NUMBER() kills the MariaDBDFS
+* Re: MariaDB on Windows: SELECT query with ROW_NUMBER() kills theJ.O. Aho
|`* Re: MariaDB on Windows: SELECT query with ROW_NUMBER() kills theDFS
| `- Re: MariaDB on Windows: SELECT query with ROW_NUMBER() kills theJ.O. Aho
`- Re: MariaDB on Windows: SELECT query with ROW_NUMBER() kills theLuuk

1
MariaDB on Windows: SELECT query with ROW_NUMBER() kills the MariaDB 10.6.4 service

<RQXTI.29576$LV.23594@fx05.iad>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=43&group=comp.databases.mysql#43

  copy link   Newsgroups: comp.databases.mysql
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!news-out.netnews.com!news.alt.net!fdc3.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx05.iad.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Subject: MariaDB on Windows: SELECT query with ROW_NUMBER() kills the MariaDB
10.6.4 service
Newsgroups: comp.databases.mysql
X-Mozilla-News-Host: news://usnews.blocknews.net
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Lines: 64
Message-ID: <RQXTI.29576$LV.23594@fx05.iad>
X-Complaints-To: abuse@blocknews.net
NNTP-Posting-Date: Sat, 21 Aug 2021 00:32:49 UTC
Organization: blocknews - www.blocknews.net
Date: Fri, 20 Aug 2021 20:32:49 -0400
X-Received-Bytes: 2725
 by: DFS - Sat, 21 Aug 2021 00:32 UTC

$ net start MariaDB
The MariaDB service is starting.......
The MariaDB service was started successfully.

$ mariadb -u DFS -p
Enter password: *******
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 10.6.4-MariaDB mariadb.org binary distribution

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.

MariaDB [(none)]> use usenet;
Database changed
MariaDB [usenet]> SELECT ROW_NUMBER() OVER
-> (ORDER BY COUNT(POSTID) DESC, POSTERNAME) ROWNUM,
-> P3.POSTERNAME, COUNT(DISTINCT(P.POSTERID)) AS NYMS,
-> COUNT(POSTID) AS POSTS, COUNT(DISTINCT(UTCDATE)) AS DAYS_POSTED,
-> COUNT(POSTID) / COUNT(DISTINCT(UTCDATE)) AS POSTSPERDAY,
-> MAX(UTCDATE) AS LASTPOST
-> FROM POST P, POSTER P2, POSTERNAME P3
-> WHERE P.POSTERID = P2.POSTERID
-> AND P3.POSTERNAMEID = P2.POSTERNAMEID
-> AND P.GROUPID = 1
-> AND P3.POSTERNAMEID NOT IN (141,381,388)
-> AND P.UTCDATE >= '2003-07-01'
-> GROUP BY P3.POSTERNAME;
(after 30 seconds)
ERROR 2013 (HY000): Lost connection to server during query

MariaDB [usenet]> show tables;
ERROR 2006 (HY000): Server has gone away
No connection. Trying to reconnect...
ERROR 2002 (HY000): Can't connect to server on 'localhost' (10061)
ERROR: Can't connect to the server

unknown [usenet]>exit
Bye

$ net stop MariaDB
The MariaDB service is not started.

More help is available by typing NET HELPMSG 3521.

Strange!

I tried it with and without the PARTITION BY clause and it crashed the
service either way.

Took out ROW_NUMBER() and it ran fine.

FWIW, the query runs just fine as is in SQLite.

Edit: I found similar bug reports in jira.mariadb.org, but they're all
closed. So I created a new bug report.

Re: MariaDB on Windows: SELECT query with ROW_NUMBER() kills the MariaDB 10.6.4 service

<ioc80fFs66sU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=45&group=comp.databases.mysql#45

  copy link   Newsgroups: comp.databases.mysql
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: user@example.net (J.O. Aho)
Newsgroups: comp.databases.mysql
Subject: Re: MariaDB on Windows: SELECT query with ROW_NUMBER() kills the
MariaDB 10.6.4 service
Date: Sat, 21 Aug 2021 13:57:03 +0200
Lines: 15
Message-ID: <ioc80fFs66sU1@mid.individual.net>
References: <RQXTI.29576$LV.23594@fx05.iad>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net PhemDhfCdHoUQzHQIxoHhgk86bSBbnjqf1IKehePqEyCczqrfr
Cancel-Lock: sha1:UNtO3yX4yciHaBa7lKZs4Vh7CrY=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
In-Reply-To: <RQXTI.29576$LV.23594@fx05.iad>
Content-Language: en-US-large
 by: J.O. Aho - Sat, 21 Aug 2021 11:57 UTC

On 21/08/2021 02:32, DFS wrote:

MySQL and MariaDB have always had some issues with the pirate OS.
I would recommend you to use the WSL feature if you can't use a Unix or
Unix like OS.

WSL allows you to run the Linux binaries, far more stable and I would
recommend that for other enterprise tools as redis, kafka, apache,
nginx, and so on.

--

//Aho

Re: MariaDB on Windows: SELECT query with ROW_NUMBER() kills the MariaDB 10.6.4 service

<zf9UI.35057$kr4.26385@fx48.iad>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=46&group=comp.databases.mysql#46

  copy link   Newsgroups: comp.databases.mysql
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx48.iad.POSTED!not-for-mail
Subject: Re: MariaDB on Windows: SELECT query with ROW_NUMBER() kills the
MariaDB 10.6.4 service
Newsgroups: comp.databases.mysql
References: <RQXTI.29576$LV.23594@fx05.iad> <ioc80fFs66sU1@mid.individual.net>
From: nospam@dfs.com (DFS)
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <ioc80fFs66sU1@mid.individual.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Lines: 26
Message-ID: <zf9UI.35057$kr4.26385@fx48.iad>
X-Complaints-To: abuse@blocknews.net
NNTP-Posting-Date: Sat, 21 Aug 2021 15:48:47 UTC
Organization: blocknews - www.blocknews.net
Date: Sat, 21 Aug 2021 11:48:45 -0400
X-Received-Bytes: 1527
 by: DFS - Sat, 21 Aug 2021 15:48 UTC

On 8/21/2021 7:57 AM, J.O. Aho wrote:
>
> On 21/08/2021 02:32, DFS wrote:
>
> MySQL and MariaDB have always had some issues with the pirate OS.

ALL the 'ROW_NUMBER() crashed my server' reports I found on
jira.mariadb.org occurred on the hobbyist OS.

> I would recommend you to use the WSL feature if you can't use a Unix or
> Unix like OS.
>
> WSL allows you to run the Linux binaries, far more stable

I doubt it.

> and I would
> recommend that for other enterprise tools as redis, kafka, apache,
> nginx, and so on.

It's WAMP (Windows Apache MariaDB Python) for me, if I go that route.

Re: MariaDB on Windows: SELECT query with ROW_NUMBER() kills the MariaDB 10.6.4 service

<iod9tkF4081U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=47&group=comp.databases.mysql#47

  copy link   Newsgroups: comp.databases.mysql
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: user@example.net (J.O. Aho)
Newsgroups: comp.databases.mysql
Subject: Re: MariaDB on Windows: SELECT query with ROW_NUMBER() kills the
MariaDB 10.6.4 service
Date: Sat, 21 Aug 2021 23:35:48 +0200
Lines: 29
Message-ID: <iod9tkF4081U1@mid.individual.net>
References: <RQXTI.29576$LV.23594@fx05.iad> <ioc80fFs66sU1@mid.individual.net>
<zf9UI.35057$kr4.26385@fx48.iad>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net SkmxfdpL75+k2V6bVCnpugm1PoRC+UwJLyUud5RwIJZEnOAbDE
Cancel-Lock: sha1:/AIlZ+wKlzHbmUMK36EhIXbj/CA=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
In-Reply-To: <zf9UI.35057$kr4.26385@fx48.iad>
Content-Language: en-US-large
 by: J.O. Aho - Sat, 21 Aug 2021 21:35 UTC

On 21/08/2021 17.48, DFS wrote:
> On 8/21/2021 7:57 AM, J.O. Aho wrote:
>>
>> On 21/08/2021 02:32, DFS wrote:
>>
>> MySQL and MariaDB have always had some issues with the pirate OS.
>
>
> ALL the 'ROW_NUMBER() crashed my server' reports I found on
> jira.mariadb.org occurred on the hobbyist OS.

Didn't find that many MacOS users reporting something, but that may have
to do with few of them run on that OS.

>> I would recommend you to use the WSL feature if you can't use a Unix
>> or Unix like OS.
>>
>> WSL allows you to run the Linux binaries, far more stable
>
> I doubt it.

You won't know until you tried.

--

//Aho

Re: MariaDB on Windows: SELECT query with ROW_NUMBER() kills the MariaDB 10.6.4 service

<nnd$04a74a3f$450cb1ef@f7fbab002d2fecd4>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=48&group=comp.databases.mysql#48

  copy link   Newsgroups: comp.databases.mysql
Subject: Re: MariaDB on Windows: SELECT query with ROW_NUMBER() kills the
MariaDB 10.6.4 service
Newsgroups: comp.databases.mysql
References: <RQXTI.29576$LV.23594@fx05.iad>
From: luuk@invalid.lan (Luuk)
Date: Tue, 24 Aug 2021 08:49:32 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <RQXTI.29576$LV.23594@fx05.iad>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <nnd$04a74a3f$450cb1ef@f7fbab002d2fecd4>
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!news.swapon.de!news.mixmin.net!feed.abavia.com!abe001.abavia.com!abp002.abavia.com!news.kpn.nl!not-for-mail
Lines: 52
Injection-Date: Tue, 24 Aug 2021 08:49:32 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
 by: Luuk - Tue, 24 Aug 2021 06:49 UTC

On 21-8-2021 02:32, DFS wrote:
> $ net start MariaDB
> The MariaDB service is starting.......
> The MariaDB service was started successfully.
>
>
> $ mariadb -u DFS -p
> Enter password: *******
> Welcome to the MariaDB monitor.  Commands end with ; or \g.
> Your MariaDB connection id is 3
> Server version: 10.6.4-MariaDB mariadb.org binary distribution
>
> Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
>
> Type 'help;' or '\h' for help. Type '\c' to clear the current input
> statement.
>
>
> MariaDB [(none)]> use usenet;
> Database changed
> MariaDB [usenet]> SELECT ROW_NUMBER() OVER
>     -> (ORDER BY COUNT(POSTID) DESC, POSTERNAME) ROWNUM,
>     -> P3.POSTERNAME, COUNT(DISTINCT(P.POSTERID)) AS NYMS,
>     -> COUNT(POSTID) AS POSTS, COUNT(DISTINCT(UTCDATE)) AS DAYS_POSTED,
>     -> COUNT(POSTID) / COUNT(DISTINCT(UTCDATE)) AS POSTSPERDAY,
>     -> MAX(UTCDATE) AS LASTPOST
>     -> FROM POST P, POSTER P2, POSTERNAME P3
>     -> WHERE P.POSTERID = P2.POSTERID
>     -> AND P3.POSTERNAMEID = P2.POSTERNAMEID
>     -> AND P.GROUPID = 1
>     -> AND P3.POSTERNAMEID NOT IN (141,381,388)
>     -> AND P.UTCDATE >= '2003-07-01'
>     -> GROUP BY P3.POSTERNAME;
> (after 30 seconds)
> ERROR 2013 (HY000): Lost connection to server during query
>
> MariaDB [usenet]> show tables;
> ERROR 2006 (HY000): Server has gone away
> No connection. Trying to reconnect...
> ERROR 2002 (HY000): Can't connect to server on 'localhost' (10061)
> ERROR: Can't connect to the server
>
> unknown [usenet]>exit
> Bye
>

Did you check the log file ?

(see: `show variables like 'log_error';`)

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor