# Using ruby with mysql

**URL:** <https://www.ruby-forum.com/t/using-ruby-with-mysql/88837>\
**Category:** Ruby\
**Created:** [March 14, 2007, 9:48pm UTC](https://www.ruby-forum.com/t/using-ruby-with-mysql/88837 "2007-03-14T21:48:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phudson1442](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c68b51/32.png) [@phudson1442](https://www.ruby-forum.com/u/phudson1442)\
**Post date:** [March 14, 2007, 9:48pm UTC](https://www.ruby-forum.com/t/using-ruby-with-mysql/88837/1 "2007-03-14T21:48:41Z")

</div>

Under Windows XP, I have Ruby installed and running, and I have mysql  
installed and running. I want to use these together.

I’ve used “gem install mysql” to install the client between the two:

mysql 2.7.3 (mswin32)

Now this statement:

dbh = Mysql.real\_connect(“localhost”, “root”, “mysql”, “test”)

Gives me this error:

Error code: 1251  
Error message: Client does not support authentication protocol requested  
by server; consider upgrading MySQL client

mysql 2.7.3 was the newest client in the list.

Any help would be appreciated.

Paul
