The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Databases
> MySQL Help
|
Page 2 -
Client does not support authentication protocol (was "Need Help MySQL Errors")
Page 2 - Discuss Client does not support authentication protocol (was "Need Help MySQL Errors") in the MySQL Help forum on Dev Shed. Client does not support authentication protocol (was "Need Help MySQL Errors") MySQL Help forum discussing administration, SQL syntax, and other MySQL-related topics. MySQL is an open-source relational database management system (RDBMS).
|
|
 |
|
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

January 24th, 2005, 05:07 PM
|
 |
(retired)
|
|
Join Date: Dec 2003
Location: The Laboratory
|
|
Ok, I've done some googling, and it looks like phpBB has trouble with php5. The solutions are to a) use php 4 or b) to install this patch/mod
--Simon
|

January 24th, 2005, 08:58 PM
|
 |
Can I get an Amen!
|
|
Join Date: Jun 2004
Location: Disclosed Location
|
|
|
Thanks Simon
I did try the mod but found that this would also require mysqli to be installed with mysql from the start (or so it seemed)
Being that that I'm not sure if the enviroment I'm going to be deploying to had this, I decided that going the route of switching to php4 was the better answer, seeing as the production enviroment was using 4.3.10. I just like to be running the latest and greatest if I can, guess I just couldn't have it all this time, (well could have, just decided to let it go and move on)
In any case, it's up and running thanks to your help.
|

April 29th, 2005, 03:27 AM
|
 |
Contributing User
|
|
Join Date: Jun 2003
Location: Thessaloniki
Posts: 1,004
Time spent in forums: 3 Days 12 h 52 m 42 sec
Reputation Power: 11
|
|
|
blockcipher told me that:
Downloading a new version from CPAN I don't think will help unless you actually compile it against version 4.1 or newer client libraries. I'll let someone else walk you through this because I had to do it once with the Cygwin version of Perl using GCC and that involved recompiling both the client libraries and dbd::mysql. If you're using the Activestate version of Perl, you probably didn't get the CPAN version of dbd::mysql, you got the Activestate version which is pre-compiled and, the last time I checked, a couple minor versions behind the CPAN version.
You'll probably want to ask for more help in the Perl forums.
but i dont know exactly what to do:
Actually yes i do have ActiveState's Perl version and i
c:\> ppm
install dbd::mysql
exit
to download the mysql DataBase Driver.
What exactly i must do now to get mysql 5 to work?
__________________
What is now proved was once only imagined!
|

June 27th, 2005, 05:35 PM
|
 |
llama slayer
|
|
Join Date: Apr 2003
Posts: 464
  
Time spent in forums: 3 Days 23 h 10 m 42 sec
Reputation Power: 15
|
|
ok,
I'm confused because it seems like it should be working, as things always do whenever we have a problem...but that's neither here nor there, my problem is that I cannot seem to get mysqld.exe to run with --old-passwords
each time I try to do that from my command prompt I get a:
[ERROR] mysqld: unknown variable 'Server=C:/dir/path/bin/mysqld-nt.exe'
I've made sure that mysql is shut down before trying to execute the code and I've tried editing the registry entry for the server, but I can't figure it out and don't know what to do next. I also tried adding "old_passwords" to the my.ini file as sombody suggested, but that didn't fix my authentication problem either.
Any suggestions?
__________________
"So I hired the best Feng-Shui artist to come down here and get my yin and yang in order, cause I...FRICK'N...LOVE...HARMONY!!!"
- Captain Murphey, Sealab 2021
|

June 28th, 2005, 02:38 PM
|
 |
llama slayer
|
|
Join Date: Apr 2003
Posts: 464
  
Time spent in forums: 3 Days 23 h 10 m 42 sec
Reputation Power: 15
|
|
ok,
well what I ended up doing to fix my problem was using
Code:
mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
-> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;
while this worked, it is by no means ideal since it is on a per-user basis...fortunately, the db I'm working on is dev only and when the project goes live, it will be running on an earlier version and won't have to deal with this problem.
|

November 11th, 2005, 12:36 PM
|
|
Contributing User
|
|
Join Date: Feb 2004
Posts: 137
Time spent in forums: 50 m 10 sec
Reputation Power: 10
|
|
Quote:
The problem is that a number of programs / applications haven't been updated to deal with this hashing algorithm |
That's not entirely correct. The problem is that many programs use an old libmysql.dll (MySQL Client Library) which doesn't support the new password hashing.
In most programs where the mysql client is dynamically linked (DLL) you can simply replace the dll with a newer one.. you can find the dll in mysql servers in "\lib\opt\libmysql.dll" which is the same version as the mysql server. So if your server is 5.0.15, that DLL would be also version 5.0.15.
But there's an alternative workaround, which is posted in this thread hundred times..
SET PASSWORD FOR user@host = OLD_PASSWORD('password');
|

November 27th, 2005, 12:45 PM
|
 |
meester luva luva
|
|
|
|
|
Hmm, I have enabled the old passwords flag in mysql administrator and restarted mysql and apache and I still get the client does not support.... error.
I can log into a console though using this:
mysql -u root -p password
any ideas?
|

January 15th, 2006, 11:41 PM
|
|
Contributing User
|
|
Join Date: Jul 2003
Posts: 679
Time spent in forums: 2 Days 15 h 14 m 40 sec
Reputation Power: 10
|
|
|
I have a little problem. I'm using a share server. I set the command : SET PASSWORD = OLD_PASSWORD( 'pass' ), but no resoults..
|

January 15th, 2006, 11:51 PM
|
|
Contributing User
|
|
Join Date: Jul 2003
Posts: 679
Time spent in forums: 2 Days 15 h 14 m 40 sec
Reputation Power: 10
|
|
After I do this..the password was changed..and now I don't have acces even to myphpadmin  , but my scripts also don't work.
|

February 22nd, 2006, 08:58 PM
|
|
Contributing User
|
|
Join Date: Nov 2003
Location: Toronto
Posts: 164
Time spent in forums: 19 h 26 m 46 sec
Reputation Power: 10
|
|
|
i running in a newer MySQL 4.1.7 when i'm connecting i get
DBI connect('andregaron1:localhost','agaron',...) failed: Client does not support authentication protocol requested by server; conside
based on this thread i'm trying to fix my code but now i'm getting:
syntax error at login.pl line 15, near "FOR 'agaron'"
Bad name after newpwd' at login.pl line 15.
#!/usr/bin/perl -wT
use strict;
use CGI qw/:standard/;
use CGI::Carp "fatalsToBrowser";
use DBI;
print "Content-type: text/html\n\n";
SET PASSWORD = OLD_PASSWORD('secret');
SET PASSWORD FOR 'agaron'@'localhost' = OLD_PASSWORD('newpwd');
my $host = "localhost";
my $db = "andregaron1";
my $user = "agaron";
my $pass = "********";
my $dbh = DBI->connect ("DBI:mysql:$db:$host",$user,$pass,{ RaiseError => 1, AutoCommit => 1})
or die "info.pl: can't open database: $!\n";
|

February 22nd, 2006, 09:10 PM
|
 |
(retired)
|
|
Join Date: Dec 2003
Location: The Laboratory
|
|
|
You'll need to run that query directly in MySQL, or send it as a query to the server via DBI
|

February 22nd, 2006, 09:20 PM
|
|
Contributing User
|
|
Join Date: Nov 2003
Location: Toronto
Posts: 164
Time spent in forums: 19 h 26 m 46 sec
Reputation Power: 10
|
|
Quote: | Originally Posted by SimonGreenhill You'll need to run that query directly in MySQL, or send it as a query to the server via DBI |
can i keep the old password?
|

February 22nd, 2006, 09:22 PM
|
 |
(retired)
|
|
Join Date: Dec 2003
Location: The Laboratory
|
|
Yes, it's just changing the stored hash of it -
Code:
mysql> select PASSWORD( 'secret' ), OLD_PASSWORD( 'secret' );
+-------------------------------------------+--------------------------+
| PASSWORD( 'secret' ) | OLD_PASSWORD( 'secret' ) |
+-------------------------------------------+--------------------------+
| *14E65567ABDB5135D0CFD9A70B3032C179A49EE7 | 428567f408994404 |
+-------------------------------------------+--------------------------+
1 row in set (0.00 sec)
Both passwords are "secret", but the hash is different.
--Simon
|

February 22nd, 2006, 09:26 PM
|
|
Contributing User
|
|
Join Date: Nov 2003
Location: Toronto
Posts: 164
Time spent in forums: 19 h 26 m 46 sec
Reputation Power: 10
|
|
|
YEEAAA it worked
thank you so much
|

November 8th, 2006, 10:48 AM
|
|
Contributing User
|
|
Join Date: Aug 2003
Posts: 138
Time spent in forums: 5 h 2 m 11 sec
Reputation Power: 10
|
|
|
can someone please help me -- what exactly do I do?
is this an sql command?
I have no idea what my old password is and I only know my new password that i put in when I reinstalled.
Please advise me exactly what i'm supposed to do?
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|