<div dir="ltr"><div>It sounds to me (as an interested third party observer of BioPerl), that there</div><div>is value in adding <span lang="EN-US">a MariaDB module to Bio::DB:SeqFeature:Store::DBI</span></div><div><span lang="EN-US">even if it is as simple as an alias or near copy of the MySQL module?</span></div><div><span lang="EN-US"><br></span></div><div><span lang="EN-US">It also sounds like a bug in </span><span lang="EN-US">DBD::MySQL if it refuses to work with version</span></div><div><span lang="EN-US">10 (from MariaDB) by insisting on version 8. Do you know where their</span></div><div><span lang="EN-US">issue tracker is? I would be surprised if that has not been discussed.<br></span></div><div><span lang="EN-US"><br></span></div><div><span lang="EN-US">Peter<br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 2, 2024 at 10:56 AM Schlachter, Kai <<a href="mailto:kai.schlachter@dkfz-heidelberg.de">kai.schlachter@dkfz-heidelberg.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg4141255994118379919">
<div lang="DE" style="overflow-wrap: break-word;">
<div class="m_4141255994118379919WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:black">Hello Peter,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black"> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">Thanks for your reply.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black"> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">Updating of the database server process itself was no issue, also the migration of the data in the database was nothing unusual – this is also something I already did many times before in other projects.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black"> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">So the next step I did was trying to install DBD::mysql as per some of the error messages I got from the application, this module was missing (which was correct, as I started with a plain Debian container).
So I tried to install, but first I needed to get the mysql-config tool installed:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">apt-get install libmariadb-dev-compat<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black"> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">After that I tried again with:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">cpanm install DBD::mysql<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black"> <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">and this failed, with the errors in the log:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">….<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">DBD::mysql requires MySQL 8.x or newer for building. Version reported by mysql_config --version</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">: 10.11.6 at Makefile.PL line 451, <PIPE> line 3.</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">-> N/A</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">-> FAIL Configure failed for DBD-mysql-5.008. See /root/.cpanm/work/1725256110.1036/build.log f</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">or details.</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">…..</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black"> </span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">As there is a DBD::MariaDB, I thought: Yes that one would most likely do the trick and I could actually install it. For this to be used I also needed to set the configuration in gbrowse to use the
MariaDB Connector (which is ok because this is what I just installed). However this does not work out as gbrowse used Bio::DB:SeqFeature:Store::DBI::mysql and now tries to use Bio::DB:SeqFeature:Store::DBI::MariaDB which is a module that does not exist.</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black"> </span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">It might be that everything just works fine if I install the mysql libraries into the container, sourced from MySQL directly instead of relying on Debian packages that come out of the box. But this
feels kind of an ugly workaround.</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black"> </span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">Greetings,</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black"> </span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">Kai</span><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) currentcolor currentcolor;padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12pt;color:black">Von: </span></b><span style="font-size:12pt;color:black">Peter Cock <<a href="mailto:p.j.a.cock@googlemail.com" target="_blank">p.j.a.cock@googlemail.com</a>><br>
<b>Datum: </b>Freitag, 30. August 2024 um 14:29<br>
<b>An: </b>"Schlachter, Kai" <<a href="mailto:kai.schlachter@dkfz-heidelberg.de" target="_blank">kai.schlachter@dkfz-heidelberg.de</a>><br>
<b>Cc: </b>"<a href="mailto:bioperl-l@bioperl.org" target="_blank">bioperl-l@bioperl.org</a>" <<a href="mailto:bioperl-l@bioperl.org" target="_blank">bioperl-l@bioperl.org</a>><br>
<b>Betreff: </b>[Extern] - Re: [Bioperl-l] Support for MariaDB in Bio::DB:SeqFeature:Store::DBI::<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">Hello Kai,<br>
<br>
Interesting question (although I'm viewing it from a Python and Biopython perspective).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="https://mariadb.com/kb/en/upgrading-from-mysql-to-mariadb/" target="_blank">https://mariadb.com/kb/en/upgrading-from-mysql-to-mariadb/</a> suggests this should<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">just work, with existing MySQL bindings treating MariaDB as a newer version.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">It sounds like your set is breaking in the Perl module DBD::mysql?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="https://metacpan.org/dist/DBD-mysql" target="_blank">https://metacpan.org/dist/DBD-mysql</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Looking at the change log there are entries from this year, and multiple mentions<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">of MariaDB - so I would expect this to work:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="https://metacpan.org/release/DVEEDEN/DBD-mysql-5.008/source/Changes" target="_blank">https://metacpan.org/release/DVEEDEN/DBD-mysql-5.008/source/Changes</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Can you take a look at their issue tracker <a href="https://github.com/perl5-dbi/DBD-mysql" target="_blank">
https://github.com/perl5-dbi/DBD-mysql</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">and see if you've hit a known issue?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Also can you double check the version of DBD::mysql you have installed?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Peter<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Fri, Aug 30, 2024 at 12:15 PM Schlachter, Kai <<a href="mailto:kai.schlachter@dkfz-heidelberg.de" target="_blank">kai.schlachter@dkfz-heidelberg.de</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-width:medium medium medium 1pt;border-style:none none none solid;border-color:currentcolor currentcolor currentcolor rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<div>
<p class="MsoNormal">Hi there,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">I took over an older project to modernize the underlaying hardware / software.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">This also involves the use of gbrowse, which in turn relies quite a lot on BioPerl.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">As our freshly provided servers are all Debian based and we are highly encouraged to use a most recent version of Debian inside of our containers (docker), I
ran into the following issue:</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Debian no longer supports MySQL but has switched to MariaDB, which leads me to the following:</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">I tried to install gbrowse, resolving all the dependencies and stuff that came along. I also was able to compile the DBD::MariaDB as this is the required module
for MariaDB-Connections.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">However I was not able to find a Module in Bio::DB:SeqFeature:Store::DBI called MariaDB, there is only Mysql :(</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Although both adaptors should share at least some basic functionality, it is not possible to install the Mysql-Version on a recent Debian because DBD::MySQL will
refuse to work with mariadb because of a version mismatch (expected 8.x but reported 10.y).</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Are there any plans / ideas to add mariadb support to the modules?</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">I am not an original perl programmer so I don’t think it’s a good idea to start implementing / contributing with such a complex thing.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Greetings,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Kai</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Bioperl-l mailing list<br>
<a href="mailto:Bioperl-l@bioperl.org" target="_blank">Bioperl-l@bioperl.org</a><br>
<a href="https://mailman.open-bio.org/mailman/listinfo/bioperl-l" target="_blank">https://mailman.open-bio.org/mailman/listinfo/bioperl-l</a><u></u><u></u></p>
</div>
</blockquote>
</div>
</div>
</div>
_______________________________________________<br>
Bioperl-l mailing list<br>
<a href="mailto:Bioperl-l@bioperl.org" target="_blank">Bioperl-l@bioperl.org</a><br>
<a href="https://mailman.open-bio.org/mailman/listinfo/bioperl-l" rel="noreferrer" target="_blank">https://mailman.open-bio.org/mailman/listinfo/bioperl-l</a><br>
</div></blockquote></div>