Help for this page

Select Code to Download


  1. or download this
    mysql -h database_host -u username --password=password --ssl-ca= /path
    +_to_CA_file/ca-cert.pem
    
  2. or download this
    my $dbhost = "database_host";
    my $dbuser = "username";
    ...
    
    my $dbh = DBI->connect("DBI:mysql:database=$dbname;host=$dbhost;mysql_
    +ssl=1;mysql_ssl_ca_file=$cafile","$dbuser", "$dbpw",{'RaiseError' => 
    +1})
    or die "Error in connecting to database";
    
  3. or download this
        -> DBI->connect(DBI:mysql:database=dbname;host=database_host;mysql
    +_ssl=1;mysql_ssl_ca_file=/path_to_CA_file/ca-cert.pem, username, ****
    +, HASH(0x7c9080))
        -> DBI->install_driver(mysql) for linux perl=5.022000 pid=20099 ru
    +id=83598 euid=83598
    ...
    imp_dbh->mysql_dr_connect: <-        --> do_error
    SSL connection error error 2026 recorded: SSL connection error
            <-- do_error