Hi, I have strange problem with MySQL/Ruby (mysql-ruby-2.8pre2).
When I run this simple script:
#!/usr/local/bin/ruby
require “mysql”
dbh = Mysql.real_connect(“localhost”, “root”, “xx”, “xx”)
get server version string and display it
puts "Server version: " + dbh.get_server_info
res = dbh.query(“select * from _produkty”)
output:
#./mysql.rb
Server version: 5.0.24a-log // so its working and connect to server ?
Segmentation fault // but query always give sf