The password style has changed in MySQL 4.1. I have seen this error
message when trying to access a MySQL 4.1 server with a MySQL 4.0
client. The problem was fixed with the OLD_PASSWORD() function
mentioned here:
I created a patch for Tomita's client (which is included as a part of
Rails ActiveRecord) to handle the 4.1 authentication protocol. There
are, I think, a few issues still with mixed access (i.e. access a 4.1
and pre-4.1 server in the same session) but otherwise it seems robust.
The only way to obtain it at the moment is to install the activerecord
gem (or use svn).
Regards,
Matt
···
On Tue, 8 Mar 2005 05:03:06 +0900, Belorion <belorion@gmail.com> wrote:
> I believe that this has to do with MySQL changing its authentication protocol.
Yes, if I recall correctly, Tomita Masahiro's MySQL-Ruby 2.5 library
only works with MySQL < 4.1 (we use 4.0.20 at work just fine).
While using this unit, what would be the correct unit to require? mysql411.rb or mysql.rb?
Thanks
···
----- Original Message ----- From: "Matt Mower" <matt.mower@gmail.com>
To: "ruby-talk ML" <ruby-talk@ruby-lang.org>
Sent: Friday, March 11, 2005 10:37 AM
Subject: Re: Problems connecting MySQL with Ruby
I created a patch for Tomita's client (which is included as a part of
Rails ActiveRecord) to handle the 4.1 authentication protocol. There
are, I think, a few issues still with mixed access (i.e. access a 4.1
and pre-4.1 server in the same session) but otherwise it seems robust.
The only way to obtain it at the moment is to install the activerecord
gem (or use svn).
I created a patch for Tomita's client (which is included as a part of
Rails ActiveRecord) to handle the 4.1 authentication protocol. There
are, I think, a few issues still with mixed access (i.e. access a 4.1
and pre-4.1 server in the same session) but otherwise it seems robust.
The only way to obtain it at the moment is to install the activerecord
gem (or use svn).
Has this patch been offered to Tomita so it can be rolled into the stand-alone ruby-mysql lib?
Not at this point but it certainly was my intention. I should take
another look at this.
M
···
On Apr 2, 2005 3:59 PM, James Britt <james_b@neurogami.com> wrote:
Matt Mower wrote:
>
> I created a patch for Tomita's client (which is included as a part of
> Rails ActiveRecord) to handle the 4.1 authentication protocol. There
> are, I think, a few issues still with mixed access (i.e. access a 4.1
> and pre-4.1 server in the same session) but otherwise it seems robust.
>
> The only way to obtain it at the moment is to install the activerecord
> gem (or use svn).
Has this patch been offered to Tomita so it can be rolled into the
stand-alone ruby-mysql lib?