If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > client does not support authentication protocol

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-04-04, 09:26
ffenics2002 ffenics2002 is offline
Registered User
 
Join Date: Feb 2004
Location: England, UK
Posts: 10
client does not support authentication protocol

Hi there

I have MySql 4.1 up and running on my system now but when I try to access the database using a perl script I get the following error:

DBI connect('my_database:localhost','root',...) failed: Client does not support authentication protocol requested by server; consider upgrading MySQL client at database_connection.pl line 9

The perl script in question is:

use DBI;

my $dsn = 'DBI:mysql:my_database:localhost';
my $db_user_name = 'root';
my $db_password = '<my root password>';
my ($id, $password);
my $dbh = DBI->connect($dsn, $db_user_name, $db_password);

I understand that mysql 4.1 changed its password authenication so I used the OLD-PASSWORD function in order to revert back to the old style, but although that worked, I still dont get rid of the error.

Any help would be much appreciated.

My system is a PC running SuSe 9.0

Ffenics
Reply With Quote
  #2 (permalink)  
Old 03-04-04, 10:08
ika ika is offline
Registered User
 
Join Date: Oct 2003
Location: Slovakia
Posts: 482
Re: client does not support authentication protocol

Quote:
Originally posted by ffenics2002
Hi there

I have MySql 4.1 up and running on my system now but when I try to access the database using a perl script I get the following error:

DBI connect('my_database:localhost','root',...) failed: Client does not support authentication protocol requested by server; consider upgrading MySQL client at database_connection.pl line 9

The perl script in question is:

use DBI;

my $dsn = 'DBI:mysql:my_database:localhost';
my $db_user_name = 'root';
my $db_password = '<my root password>';
my ($id, $password);
my $dbh = DBI->connect($dsn, $db_user_name, $db_password);

I understand that mysql 4.1 changed its password authenication so I used the OLD-PASSWORD function in order to revert back to the old style, but although that worked, I still dont get rid of the error.

Any help would be much appreciated.

My system is a PC running SuSe 9.0

Ffenics
http://www.mysql.com/doc/en/Old_client.html
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On