我收到以下错误
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': 126: The specified module could not be found. - C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-mingw32/lib/mysql2/1.9/mysql2.so (LoadError)
尝试运行此脚本时…
require "mysql2" client = Mysql2::Client.new(:host => "localhost", :username => "root", :password => "system32") results = client.query("SELECT * FROM project1_nodes").each do |row| puts row end
有任何想法吗?
干杯马丁
我猜您正在Windows上运行ROR。因此,请按照下列步骤。
这可能会解决您的问题。