0

I have the latest C Connector - libmariadb.dll v 3.4.5 - getting the following error when attempting a connection using DBI - install_driver(MariaDB) failed: Can't find 'boot_DBD__MariaDB' symbol in C:/Strawberry/perl/site/lib/libMariaDB.dll at (eval 5) line 3. Compilation failed in require at (eval 5) line 3.

Any ideas how to resolve this?

use DBI;
use strict;
my ($driver,$database,$host,$dsn,$userid,$password,$dbh);
$driver = "MariaDB"; 
$database = "DBRIDGE";
$host = "localhost";
$dsn = "DBI:$driver:database=$database:host=$host";
$userid = "root";
$password = "mypassword";
$dbh = DBI->connect($dsn, $userid, $password ) or die "Prepare statement failed:    $dbh->errstr()";
print "Connected to database on $host\n";
5
  • 1
    Did it work with an older connector or older Perl? Commented May 26 at 13:50
  • 5
    How did you install DBD::MariaDB? The client library should be distinct from the Perl glue library. Commented May 26 at 13:54
  • I also tried Starwberry Perl 5.36 but no luck with that either. I installed DBD::MariaDB using cpan. Commented May 27 at 16:25
  • 1
    There shouldn't be any DLL files in perl/site/lib. (They should be in subdirs of perl/site/lib/auto.) What if you remove that DLL? Commented May 27 at 19:53
  • What I eventually did was to regress to Strawberry Perl 5.32, then do a "cpamn install DBD::Mariadb" and that worked as expected, so I am up and running. Ultimately I would like to know with Perl 5.40, given that the mysql.pm/MySQL.pm modules are installed but are not active, how to activate them (as I should not have to install them via cpanm. Commented May 29 at 7:14

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.