TLS support for Perl 5.24.1 version

Hi Team,
We are using ActivePerl 5.24.1 version in my application.
We are connecting to MySQL 5.7 version with Perl script. TCP protocol is using for data communication with Perl script and MySQL data base.
Now, we have a requirement to use TLS in order to encrypt the data or query between channel.
Please help me which package do i need to install or enable any setting for using TLS protocol ?

Here is code we are using for mySQL DB connection
for example-
$dsn = “DBI:mysql:database=mysql;port=$mysqlport;host=$SERVERNAME”;
$dbh = DBI->connect($dsn, $user, $pass, {‘RaiseError’ => 1});

Thank you.
Ajit Yadav

Hi Ajit,

Not sure, I recommend you look at mySQL forums to see if that could help.

One article that may help: SSL Connections in MySQL 5.7 - Percona Database Performance Blog

Cheers,

-JR

1 Like

Thanks for reply but did not exactly solve my problem.