Hi,
Am using mysql version 14.12
Code:
#! /opt/third-party/bin/perl
use DBI;
my $dsn = "DBI:mysql:database=mydb;" . "mysql_read_default_file=/home/work/db/my.cnf";
my $username = "user";
my $password = "user";
my $dbh = DBI->connect($dsn, $username, $password) || die "Unable to acquire dB Handle:$DBI::errstr\n";
$dbh->disconnect();
exit 0
Code:
Error:
Unable to acquire dB Handle:Client does not support authentication protocol requested by server; consider upgrading MySQL client
I tried to specify only the socket file and not the my.cnf file
Code:
#! /opt/third-party/bin/perl
use DBI;
my $dsn = "DBI:mysql:database=mydb;socket=/home/work/db/mysql.sock";
my $username = "user";
my $password = "user";
my $dbh = DBI->connect($dsn, $username, $password) || die "Unable to acquire dB Handle:$DBI::errstr\n";
$dbh->disconnect();
exit 0
Code:
Error:
Unable to acquire dB Handle:Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
Could you show some pointers, I tried searching in the forum but could not find anything related
Thanks