Segmentation Fault when I use query in Mysql/Ruby

A

Adam Wrobel

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top