sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    About Mysql and Ruby (it's working)

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 717 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      NewOne
      last edited by

      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


      mysql library

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        Ooohhh, this looks good!

        too.....many....cool.....projects, .....not................enough....time.......in...the..............day. <chris dies>

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement