Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Connection to mysql database fails when using SSL

by Mr. Muskrat (Canon)
on Aug 01, 2017 at 18:17 UTC ( [id://1196476]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    my $password = 'password';
    
    my $dbh = DBI->connect($dsn,$username,$password);
    
  2. or download this
    ...
    my $port = 12345; # whatever is should be
    my $dsn = "DBI:mysql:database=$db;host=$server;port=$port;
    ...
    mysql_ssl_client_cert=/var/lib/ssl/client-cert.pem; 
    mysql_ssl_ca_file=/var/lib/ssl/cacert.pem"; # Your paths may vary...
    ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1196476]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-23 16:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found