About Mysql and Ruby (it's working)
-
Hy! Finally (a few weeks ago, but had not time to share it) I was able to connect to mysql database using ruby under sketchup. I don't know if this will work with MYSQL 5.1, because I have MYSQL 5.0. The main problem was a discordance between libmysql.dll and mysql.so, fixed with the right version of mysql.so (by accident).
So, what you need: install MYSQL 5.0, then copy the content of attached archive in SketchUp's Plugins folder (it works also under Plugins\ruby folder).
Next step is easy:require 'mysql-2.7.3-mswin32/ext/mysql.so' ...your code...
Documentation about using the library can be found here http://tmtm.org/en/mysql/ruby/
I made a simple database and it worked well. Let me know if you encounter some strange behaviours like SketchUp freezing out and "server timed out" errors... this is what happened to me at the first time, when using the wrong version of mysql.so
-
Ooohhh, this looks good!
too.....many....cool.....projects, .....not................enough....time.......in...the..............day. <chris dies>
Advertisement