mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Switch Perl DBI scripts from DBD::mysql to DBD::MariaDB driver
Perl DBD::MariaDB driver is available CPAN and is already used in production environment.
This commit is contained in:
@ -57,10 +57,10 @@ if ($opt_port)
|
||||
}
|
||||
if (length($opt_socket))
|
||||
{
|
||||
$connect_opt.=";mysql_socket=$opt_socket";
|
||||
$connect_opt.=";mariadb_socket=$opt_socket";
|
||||
}
|
||||
|
||||
$dbh = DBI->connect("DBI:mysql:$opt_database:${opt_host}$connect_opt",
|
||||
$dbh = DBI->connect("DBI:MariaDB:$opt_database:${opt_host}$connect_opt",
|
||||
$opt_user,
|
||||
$opt_password,
|
||||
{ PrintError => 0})
|
||||
|
Reference in New Issue
Block a user