Error using perl module DBD::mysql in ActivePerl 5.28 on Windws10 64bits
问题 I installed the new ActiveState Perl custom build with Perl 5.28 and I added the module (DBD-mysql v4.50). The DBI module is set by default to the ActivePerl 5.28 compilation. use strict; use warnings; use diagnostics; use DBI; ### INIT DB CONNECTION my $dbh = DBI->connect("DBI:mysql:database=testdb;host=localhost","root", "XXXX",{'RaiseError' => 1,'mysql_auto_reconnect' => 1}); $dbh->{InactiveDestroy} = 1; $dbh->{mysql_auto_reconnect} = 1; then I get the following error: >perl test.pl