Re: DBD::mysql against mariadb client

Michiel Beijen <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <CABD0r133jLa4KtZLMR=f6zpdsqSRxOJX9q9freYWCPKd_gYLFA@mail.gmail.com>
Hi Todd,

On Tue, Oct 15, 2013 at 5:00 AM, Todd Rinaldo <[email protected]> wrote:
> Maria DB provides a LGPL licensed client library that will connect to MySQL. I've gotten this library compiling to my needs. My hope was to get DBD::mysql to compile against it. I seem to be able to do so by running:

One of the ideas Patrick has (the DBD::mysql maintainer) is to bundle
the MariaDB libs with the DBD::mysql driver in the future, so all or
most DBD::mysql users have the same C libs.

I've been trying to compile against the MariaDB C library as well. I
also ran into some issues, which were resolved by the C lib maintainer
yesterday (see https://mariadb.atlassian.net/browse/CONC-57)

For the fixes, you should use the 'trunk' version of the MariaDB C
lib: https://code.launchpad.net/mariadb-native-client

bzr branch lp:mariadb-native-client
cd mariadb-native-client
cmake .
make
make install

There will be a 1.1 release of the C libraries on the MariaDB website
in the (forseeable) future. There is still a little documentation work
that needs to be done before it can be posted.

Now I was able to compile DBD::mysql:

perl Makefile.PL --mysql_config=/usr/local/bin/
mariadb_config
make
make test
make install

The DBD::mysql *tests* pass now, but you might still want to run your
local integration tests.

Please note that there are patches in the git repo for DBD::mysql to
correctly run tests against MariaDB 10; they are not yet on CPAN but
will be in about a week. Check out the git repository here.

https://github.com/perl5-dbi/DBD-mysql/

note that on the git checkout, this test is still failing:
https://rt.cpan.org/Ticket/Display.html?id=89496

Please let me know if the above works for you!

--
Mike
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.