This has been asked before but not exactly in the same way (other users had Rails/servers issues, and I'm not having the issue with OLD_PASSWORDS)
I'm trying to make my Ruby app work with MySQL using Ruby-MySQL,
The setup is supposed to be quite simple:
% ruby ./setup.rb
% ruby ./test.rb hostname user passwd
# ruby ./install.rb
However, when I'm trying to run test.rb using localhost and root, I get the following error:
connect............./Users/turbovince/Desktop/ruby-mysql-0.2.6/mysql.rb:1019:in `read': Packets out of order: 0<> (RuntimeError)
However, I am capable of connecting to the MySQL server using /usr/local/mysql/bin/mysql without any problem.
I'm running MySQL 5.1.32 and Ruby 1.9
Any hint would be appreciated.
EDIT: I also tried with 127.0.0.1 instead of localhost.