­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ { local $opt = { 'libs' => '-L/usr/lib64 -L/usr/lib64/mysql -lmysqlclient -lpthread -ldl -lssl -lcrypto -lresolv -lm -lrt', 'nofoundrows' => 0, 'testsocket' => '', 'testpassword' => '', 'cflags' => '-I/usr/include/mysql -m64', 'testport' => '', 'testdb' => 'test', 'nocatchstderr' => 0, 'testuser' => 'root', 'version' => '8.0.33', 'mysql_config' => 'mysql_config', 'testhost' => '', 'ldflags' => '' }; $::test_host = $opt->{'testhost'}; $::test_port = $opt->{'testport'}; $::test_user = $opt->{'testuser'}; $::test_socket = $opt->{'testsocket'}; $::test_password = $opt->{'testpassword'}; $::test_db = $opt->{'testdb'}; $::test_dsn = "DBI:mysql:$::test_db"; $::test_dsn .= ";mysql_socket=$::test_socket" if $::test_socket; $::test_dsn .= ":$::test_host" if $::test_host; $::test_dsn .= ":$::test_port" if $::test_port; $::test_mysql_config = $opt->{'mysql_config'}; } 1;