MySQL-Admin
view release on metacpan or search on metacpan
lib/DBI/Library.pm view on Meta::CPAN
$m_sPass = defined $hash->{password} ? $hash->{password} : '';
my $install = defined $hash->{install} ? $hash->{install} : 0;
$m_sStyle = defined $hash->{style} ? $hash->{style} : 'mysql';
$m_dsn = "DBI:$driver:database=$m_sDatabase;host=$m_sHost";
$m_dbh = DBI::Library->connect(
$m_dsn, $m_sUser, $m_sPass,
{
RaiseError => 1,
PrintError => 0,
AutoCommit => 1,
#mysql_enable_utf8 => 1
}
)
or warn "$DBI::Library::errs";
$self->void("SET NAMES 'utf8_general_ci'");
if (!$install && $m_sDatabase eq '%DATABASE%') {
my @q = $self->fetch_array('select title from querys');
$m_hFunctions{$_} = $_ foreach (@q);
}
return $m_dbh;
}
( run in 0.236 second using v1.01-cache-2.11-cpan-00829025b61 )