I am trying to set up Perl to connect to a mysql database. i am using Perl 5.16, as this is a requiment, DBI 1.622 with DBD:mysql from cpan was build. The mysql database is Version 5.6.26 The mysql database uses SHA256 authentication, this won't be changed and there must not be set up an account with old_authentication or native. I can not connect to the database as it replies with Client authentication scheme is not supported. My short test script is
use DBI;
use DBD::mysql;
$dbh = DBI->connect('DBI:mysql:host=dbhost', 'dbtest', 'test'
) || die "Could not connect to database: $DBI::errstr";
The returned error message is
DBI connect('host=dbhost,'dbtest',...) failed: Client does not support authentication
protocol requested by server; consider upgrading MySQL client at dbtest.pl line 4.
Could not connect to database: Client does not support authentication protocol requested
by server; consider upgrading MySQL client at dbtest.pl line 4.
How can i set up a Connection to the Server?
edit : This is not a duplicate. The User is allowed to access from any host, and we do not want to roll back to old Password, as written above