使用 ruby gem 'sequel',当我尝试时Sequel.connect("mysql://localhost")
,我收到以下错误:
Sequel::AdapterNotFound: LoadError: require 'mysql' did not define Mysql::CLIENT_MULTI_RESULTS!
You are probably using the pure ruby mysql.rb driver,
which Sequel does not support. You need to install
the C based adapter, and make sure that the mysql.so
file is loaded instead of the mysql.rb file.
如何让这个 gem 连接到 MySQL 服务器?
系统:Win XP、Ruby 1.8.7、Mysql 5.1.51