can someone explain to me the basic usage for the native mysql
bindings for ruby?
I’m on OSX and have installed the pure ruby drivers (mysql-2.7) using
however, i’m getting the following error on trying a simple connection.
Mysql::Error: Client does not support authentication protocol
requested by server; consider upgrading MySQL client
so, it looks like the pure ruby drivers are pretty old. maybe the
native ones are newer?
is there any difference in usage?
also, i guess there are generic DBI drivers - is this a more recommended
since i also want to do some rails stuff, does rails assume mysql is
working, and/or need the naive libs for that working?
~/src/ruby-mysql-0.2.6 > sudo ruby ./test.rb localhost XXX XXXPW
read': Client does not support authentication protocol requested by server; consider upgrading MySQL client (Mysql::Error) from ./mysql.rb:130:inreal_connect’
initialize' from ./mysql.rb:1085:innew’
connect' from ./t/00connect.rb:1 from ./test.rb:23:inload’
from ./test.rb:19:in `each’
thanks for any help!
David "DC" Collier
+81 (0)80 6521 9559